If dp->d_type is not DT_DIR or DT_REG within deletefiles_in_dir() the following error message will be printed: "Warning: not a file or a directory: %s". However, %s will never be substituted, as the argument to the underlying vprintf() call is missing.
This PR fixes the %s substitution by passing the value of newpath.
If
dp->d_type
is notDT_DIR
orDT_REG
withindeletefiles_in_dir()
the following error message will be printed:"Warning: not a file or a directory: %s"
. However,%s
will never be substituted, as the argument to the underlyingvprintf()
call is missing.This PR fixes the
%s
substitution by passing the value ofnewpath
.