summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-07-10 08:31:35 +0000
committerkris <kris@FreeBSD.org>2000-07-10 08:31:35 +0000
commit7a2b8e6857702022e43aae047edb6e88c22226af (patch)
tree98b453aef6182922511d9234f025379f48e7e8d1 /bin
parent6503cc5b27abedda735d67e8d5b60435805ecead (diff)
downloadFreeBSD-src-7a2b8e6857702022e43aae047edb6e88c22226af.zip
FreeBSD-src-7a2b8e6857702022e43aae047edb6e88c22226af.tar.gz
Don't call warn() with no format string. This is potentially exploitable, although it
would be difficult both technically and in practise.
Diffstat (limited to 'bin')
-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 90164eb..a8ec2d9 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)
OpenPOWER on IntegriCloud