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
@ -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…
x
Reference in New Issue
Block a user