removed warning if --quiet is enabled

This commit is contained in:
netblue30 2016-11-02 07:59:15 -04:00
parent a5220fca9f
commit 81467143ee

View file

@ -106,9 +106,10 @@ static void disable_file(OPERATION op, const char *filename) {
// some distros put all executables under /usr/bin and make /bin a symbolic link
if ((strcmp(fname, "/bin") == 0 || strcmp(fname, "/usr/bin") == 0) &&
is_link(filename) &&
S_ISDIR(s.st_mode))
fprintf(stderr, "Warning: %s directory link was not blacklisted\n", filename);
S_ISDIR(s.st_mode)) {
if (!arg_quiet)
fprintf(stderr, "Warning: %s directory link was not blacklisted\n", filename);
}
else {
if (arg_debug)
printf("Disable %s\n", fname);