mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
removed warning if --quiet is enabled
This commit is contained in:
parent
a5220fca9f
commit
81467143ee
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue