diff options
-rw-r--r-- | src/firejail/fs_whitelist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c index 3514c073d..3640cc711 100644 --- a/src/firejail/fs_whitelist.c +++ b/src/firejail/fs_whitelist.c | |||
@@ -387,6 +387,9 @@ void fs_whitelist(void) { | |||
387 | // if the link is already there, do not bother | 387 | // if the link is already there, do not bother |
388 | struct stat s; | 388 | struct stat s; |
389 | if (stat(entry->link, &s) != 0) { | 389 | if (stat(entry->link, &s) != 0) { |
390 | // create the path if necessary | ||
391 | mkpath(entry->link, 0755); | ||
392 | |||
390 | int rv = symlink(entry->data + 10, entry->link); | 393 | int rv = symlink(entry->data + 10, entry->link); |
391 | if (rv) | 394 | if (rv) |
392 | fprintf(stderr, "Warning cannot create symbolic link %s\n", entry->link); | 395 | fprintf(stderr, "Warning cannot create symbolic link %s\n", entry->link); |