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:
Kris Kennaway 2000-07-10 08:31:35 +00:00
parent 3ce4a84317
commit daad7b8c8e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62887

View file

@ -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)