Don't pass the pathname itself as format string of warn(). Instead,
use "%s".
This commit is contained in:
parent
f67a987e2d
commit
5194aa7294
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: chmod.c,v 1.14 1997/07/20 04:51:02 thorpej Exp $ */
|
/* $NetBSD: chmod.c,v 1.15 1997/10/06 08:25:10 enami Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993, 1994
|
* Copyright (c) 1989, 1993, 1994
|
||||||
|
@ -44,7 +44,7 @@ __COPYRIGHT(
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
|
static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: chmod.c,v 1.14 1997/07/20 04:51:02 thorpej Exp $");
|
__RCSID("$NetBSD: chmod.c,v 1.15 1997/10/06 08:25:10 enami Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ done: argv += optind;
|
||||||
}
|
}
|
||||||
if (chmod(p->fts_accpath, oct ? omode :
|
if (chmod(p->fts_accpath, oct ? omode :
|
||||||
getmode(set, p->fts_statp->st_mode)) && !fflag) {
|
getmode(set, p->fts_statp->st_mode)) && !fflag) {
|
||||||
warn(p->fts_path);
|
warn("%s", p->fts_path);
|
||||||
rval = 1;
|
rval = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue