summaryrefslogtreecommitdiff
path: root/usr.bin/nohup
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2003-02-16 03:09:51 +0000
committerChad Loder <cloder@cvs.openbsd.org>2003-02-16 03:09:51 +0000
commit669dd1d299341f9a28542390e3418c85251d6650 (patch)
tree9c0e91faecce32bf876e22aff28e0dfcd23d9a5f /usr.bin/nohup
parent7f47e031d0ea64bafd82fddda67000dc56426fc8 (diff)
Correct format string bug introduced in r1.7. ok mickey@
Diffstat (limited to 'usr.bin/nohup')
-rw-r--r--usr.bin/nohup/nohup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/nohup/nohup.c b/usr.bin/nohup/nohup.c
index 1115bc6dc66..c9a19ae8f31 100644
--- a/usr.bin/nohup/nohup.c
+++ b/usr.bin/nohup/nohup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nohup.c,v 1.9 2002/05/29 18:33:39 deraadt Exp $ */
+/* $OpenBSD: nohup.c,v 1.10 2003/02/16 03:09:50 cloder Exp $ */
/* $NetBSD: nohup.c,v 1.6 1995/08/31 23:35:25 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ char copyright[] =
#if 0
static char sccsid[] = "@(#)nohup.c 5.4 (Berkeley) 6/1/90";
#endif
-static char rcsid[] = "$OpenBSD: nohup.c,v 1.9 2002/05/29 18:33:39 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: nohup.c,v 1.10 2003/02/16 03:09:50 cloder Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -94,7 +94,7 @@ main(argc, argv)
execvp(argv[1], &argv[1]);
exit_status = (errno == ENOENT) ? EXIT_NOTFOUND : EXIT_NOEXEC;
- err(exit_status, argv[1]);
+ err(exit_status, "%s", argv[1]);
}
static void