summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-24 06:52:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-08-24 06:52:02 +0000
commit26f9ed8033c7fd9f81748084530f9d6abc64adc9 (patch)
tree8d51a580341adba6b7e88761a80b5ad16f029b78
parent126c4962110c4f7ff7ff4289f54f2007cf655675 (diff)
do not ever call err() with a 2nd arg that could have a % in it, ok?
-rw-r--r--sbin/mount_union/mount_union.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mount_union/mount_union.c b/sbin/mount_union/mount_union.c
index 7ba1ad8b830..f9a4a2a7429 100644
--- a/sbin/mount_union/mount_union.c
+++ b/sbin/mount_union/mount_union.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_union.c,v 1.5 1997/08/20 05:10:28 millert Exp $ */
+/* $OpenBSD: mount_union.c,v 1.6 1997/08/24 06:52:01 deraadt Exp $ */
/* $NetBSD: mount_union.c,v 1.3 1996/04/13 01:32:11 jtc Exp $ */
/*
@@ -47,7 +47,7 @@ char copyright[] =
#if 0
static char sccsid[] = "@(#)mount_union.c 8.5 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_union.c,v 1.5 1997/08/20 05:10:28 millert Exp $";
+static char rcsid[] = "$OpenBSD: mount_union.c,v 1.6 1997/08/24 06:52:01 deraadt Exp $";
#endif
#endif /* not lint */
@@ -122,7 +122,7 @@ main(argc, argv)
errx(1, "%s: Filesystem not supported by kernel",
argv[1]);
else
- err(1, argv[1]);
+ err(1, "%s", argv[1]);
}
exit(0);
}