From 8f676d599934e0e56038876138f87aee1317ecd3 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 16 Aug 2015 15:34:16 -0400 Subject: moved warning under --debug option --- src/firejail/fs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/firejail/fs.c b/src/firejail/fs.c index c38317371..4b4e63288 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c @@ -137,14 +137,16 @@ static void disable_file(OPERATION op, const char *filename, const char *emptydi // Resolve all symlinks char* fname = realpath(filename, NULL); if (fname == NULL) { - printf("Warning: %s is an invalid file, skipping...\n", filename); + if (arg_debug) + printf("Warning: %s is an invalid file, skipping...\n", filename); return; } // if the file is not present, do nothing struct stat s; if (stat(fname, &s) == -1) { - printf("Warning: %s does not exist, skipping...\n", fname); + if (arg_debug) + printf("Warning: %s does not exist, skipping...\n", fname); free(fname); return; } -- cgit v1.2.3-54-g00ecf