aboutsummaryrefslogtreecommitdiff
path: root/bin/chmod
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-07-10 08:31:35 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-07-10 08:31:35 +0000
commitdaad7b8c8e5bcdaf68189f19c3b36b12673e8428 (patch)
tree30dd9aea5d96015b76c33dec670141a959f4c8ed /bin/chmod
parent3ce4a8431730852c749411e515c6a3f53f2efbb5 (diff)
downloadsrc-daad7b8c8e5bcdaf68189f19c3b36b12673e8428.tar.gz
src-daad7b8c8e5bcdaf68189f19c3b36b12673e8428.zip
Don't call warn() with no format string. This is potentially exploitable, although it
would be difficult both technically and in practise.
Notes
Notes: svn path=/head/; revision=62887
Diffstat (limited to 'bin/chmod')
-rw-r--r--bin/chmod/chmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c
index 90164ebff5a8..a8ec2d92dfd7 100644
--- a/bin/chmod/chmod.c
+++ b/bin/chmod/chmod.c
@@ -193,7 +193,7 @@ done: argv += optind;
}
if (chmod(p->fts_accpath, oct ? omode :
getmode(set, p->fts_statp->st_mode)) && !fflag) {
- warn(p->fts_path);
+ warn("%s", p->fts_path);
rval = 1;
} else {
if (vflag)