use sysconfdir

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11080 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-08-12 15:09:20 +00:00
parent fad7cec245
commit 31ad1085bf
9 changed files with 19 additions and 19 deletions

View File

@@ -160,7 +160,7 @@ rsaencpwd_init(ap, server)
gethostname(lhostname, sizeof(lhostname));
if ((cp = strchr(lhostname, '.')) != 0) *cp = '\0';
snprintf(key_file, sizeof(key_file),
"/etc/.%s_privkey", lhostname);
SYSCONFDIR "/.%s_privkey", lhostname);
if ((fp=fopen(key_file, "r"))==NULL) return(0);
fclose(fp);
} else {