summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-07-23 07:02:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-07-23 07:02:03 +0000
commitf3acee5781b1c778c3cffc856632d813df08141a (patch)
treef445f9bb0df3aefb25f959fef67830887a3d0e86 /usr.bin
parent449abf4f57c790576732b7e895616d6538067120 (diff)
Use _PATH_SKEYKEYS and fix a typo.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/skeyaudit/skeyaudit.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/skeyaudit/skeyaudit.c b/usr.bin/skeyaudit/skeyaudit.c
index da8baf61b51..215cdb162d2 100644
--- a/usr.bin/skeyaudit/skeyaudit.c
+++ b/usr.bin/skeyaudit/skeyaudit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: skeyaudit.c,v 1.4 1997/07/23 06:31:17 millert Exp $ */
+/* $OpenBSD: skeyaudit.c,v 1.5 1997/07/23 07:02:02 millert Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -92,13 +92,12 @@ main(argc, argv)
left = key.n - 1;
break;
case -1: /* File error */
- /* XXX - _PATH_SKEYFILE should be in paths.h? */
- warnx("cannot open /etc/skeykeys");
+ warnx("cannot open %s", _PATH_SKEYKEYS);
break;
case 1: /* Unknown user */
- warnx("%s is not listed in /etc/skeykeys", name);
+ warnx("%s is not listed in %s", name, _PATH_SKEYKEYS);
}
- (void)fclose(mp->keyfile);
+ (void)fclose(key.keyfile);
/* Run sendmail as user not root */
seteuid(getuid());