summaryrefslogtreecommitdiff
path: root/usr.bin/chpass
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2000-07-07 15:10:32 +0000
committeritojun <itojun@NetBSD.org>2000-07-07 15:10:32 +0000
commitbbef2fbaacededb5eb9a0855d32a09e3b032f2c5 (patch)
tree803ad37661cca887d0d2f9ba989c9e4fac0d3b4f /usr.bin/chpass
parent82cbc88d2a7761987127a50eb8d22f72dad97c6a (diff)
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r--usr.bin/chpass/chpass.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/chpass/chpass.c b/usr.bin/chpass/chpass.c
index da5c1505df1..05d22ba0afa 100644
--- a/usr.bin/chpass/chpass.c
+++ b/usr.bin/chpass/chpass.c
@@ -1,4 +1,4 @@
-/* $NetBSD: chpass.c,v 1.18 1999/02/08 22:21:44 mjl Exp $ */
+/* $NetBSD: chpass.c,v 1.19 2000/07/07 15:13:22 itojun Exp $ */
/*-
* Copyright (c) 1988, 1993, 1994
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)chpass.c 8.4 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: chpass.c,v 1.18 1999/02/08 22:21:44 mjl Exp $");
+__RCSID("$NetBSD: chpass.c,v 1.19 2000/07/07 15:13:22 itojun Exp $");
#endif
#endif /* not lint */
@@ -258,12 +258,12 @@ main(argc, argv)
tfd = pw_lock(0);
if (tfd < 0) {
if (errno != EEXIST)
- err(1, _PATH_MASTERPASSWD_LOCK);
+ err(1, "%s", _PATH_MASTERPASSWD_LOCK);
warnx("The passwd file is busy, waiting...");
tfd = pw_lock(10);
if (tfd < 0) {
if (errno != EEXIST)
- err(1, _PATH_MASTERPASSWD_LOCK);
+ err(1, "%s", _PATH_MASTERPASSWD_LOCK);
errx(1, "The passwd file is still busy, "
"try again later.");
}