mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Don't call warn() with no format string. This is potentially exploitable, although it
would be difficult both technically and in practise.
This commit is contained in:
parent
3ce4a84317
commit
daad7b8c8e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62887
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue