From dc96a6c6fa677dcad87119bf828f6cea16c8d56d Mon Sep 17 00:00:00 2001 From: smitsohu Date: Sat, 23 Jun 2018 02:46:03 +0200 Subject: fix bc70dbf152b10185f61b020064967f9b4616e100 --- src/firejail/fs_whitelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c index 5f8c734bc..af1993457 100644 --- a/src/firejail/fs_whitelist.c +++ b/src/firejail/fs_whitelist.c @@ -582,7 +582,7 @@ void fs_whitelist(void) { // on some platforms (Debian wheezy, Ubuntu 14.04), it is a symlink to /run/shm if (strcmp(new_name, "/dev/shm") == 0 && strcmp(fname, "/run/shm") == 0); // special handling for /dev/log, which can be a symlink to /run/systemd/journal/dev-log - if (strcmp(new_name, "/dev/log") == 0 && strcmp(fname, "/run/systemd/journal/dev-log") == 0); + else if (strcmp(new_name, "/dev/log") == 0 && strcmp(fname, "/run/systemd/journal/dev-log") == 0); // special processing for /proc/self/fd files else if (strcmp(new_name, "/dev/fd") == 0 && strcmp(fname, "/proc/self/fd") == 0); else if (strcmp(new_name, "/dev/stdin") == 0 && strcmp(fname, "/proc/self/fd/0") == 0); -- cgit v1.2.3-70-g09d2