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 2000-07-10 08:31:35 +00:00
parent 6dc838f273
commit b57d60cb8a

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)