Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/chmod do not pass user-supplied string alone, to errx?()...
details: https://anonhg.NetBSD.org/src/rev/ecf2406ba6cf
branches: trunk
changeset: 494511:ecf2406ba6cf
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Jul 07 11:54:57 2000 +0000
description:
do not pass user-supplied string alone, to errx?(). use "%s".
from openbsd.
diffstat:
bin/chmod/chmod.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b473aca1581d -r ecf2406ba6cf bin/chmod/chmod.c
--- a/bin/chmod/chmod.c Fri Jul 07 11:39:41 2000 +0000
+++ b/bin/chmod/chmod.c Fri Jul 07 11:54:57 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chmod.c,v 1.22 2000/01/20 02:50:54 mycroft Exp $ */
+/* $NetBSD: chmod.c,v 1.23 2000/07/07 11:54:57 itojun Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
#else
-__RCSID("$NetBSD: chmod.c,v 1.22 2000/01/20 02:50:54 mycroft Exp $");
+__RCSID("$NetBSD: chmod.c,v 1.23 2000/07/07 11:54:57 itojun Exp $");
#endif
#endif /* not lint */
@@ -156,7 +156,7 @@
errx(1, "invalid file mode: %s", mode);
if ((ftsp = fts_open(++argv, fts_options, 0)) == NULL)
- err(1, argv[0]);
+ err(1, "%s", argv[0]);
for (rval = 0; (p = fts_read(ftsp)) != NULL;) {
switch (p->fts_info) {
case FTS_D:
Home |
Main Index |
Thread Index |
Old Index