diff options
Diffstat (limited to 'src/firejail/fs.c')
-rw-r--r-- | src/firejail/fs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index ab2958593..25b52f5ce 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -725,7 +725,7 @@ char *fs_check_overlay_dir(const char *subdirname, int allow_reuse) { | |||
725 | errExit("asprintf"); | 725 | errExit("asprintf"); |
726 | 726 | ||
727 | if (is_link(dirname)) { | 727 | if (is_link(dirname)) { |
728 | fprintf(stderr, "Error: invalid ~/.firejail directory\n"); | 728 | fprintf(stderr, "Error: ~/.firejail directory is a symbolic link\n"); |
729 | exit(1); | 729 | exit(1); |
730 | } | 730 | } |
731 | if (stat(dirname, &s) == -1) { | 731 | if (stat(dirname, &s) == -1) { |
@@ -753,7 +753,7 @@ char *fs_check_overlay_dir(const char *subdirname, int allow_reuse) { | |||
753 | } | 753 | } |
754 | } | 754 | } |
755 | else if (s.st_uid != getuid()) { | 755 | else if (s.st_uid != getuid()) { |
756 | fprintf(stderr, "Error: invalid ~/.firejail directory\n"); | 756 | fprintf(stderr, "Error: ~/.firejail directory is not owned by the current user\n"); |
757 | exit(1); | 757 | exit(1); |
758 | } | 758 | } |
759 | free(dirname); | 759 | free(dirname); |
@@ -837,6 +837,7 @@ void fs_overlayfs(void) { | |||
837 | if (arg_overlay_keep) { | 837 | if (arg_overlay_keep) { |
838 | // set base for working and diff directories | 838 | // set base for working and diff directories |
839 | basedir = cfg.overlay_dir; | 839 | basedir = cfg.overlay_dir; |
840 | assert(basedir); | ||
840 | 841 | ||
841 | // does the overlay exist? | 842 | // does the overlay exist? |
842 | if (stat(basedir, &s) == 0) { | 843 | if (stat(basedir, &s) == 0) { |