aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/firejail/util.c b/src/firejail/util.c
index f441f283f..28ad6b990 100644
--- a/src/firejail/util.c
+++ b/src/firejail/util.c
@@ -1048,11 +1048,12 @@ MountData *get_last_mount(void) {
1048 if (arg_debug || arg_debug_whitelists) 1048 if (arg_debug || arg_debug_whitelists)
1049 printf("%s", mbuf); 1049 printf("%s", mbuf);
1050 1050
1051 // there should be no reason to have a new mount on top of a top level directory 1051 // extract filesystem name and directory
1052 mdata.fsname = mbuf; 1052 mdata.fsname = mbuf;
1053 mdata.dir = strstr(mbuf, " "); 1053 mdata.dir = strstr(mbuf, " ");
1054 if (!mdata.dir) 1054 if (!mdata.dir)
1055 goto errexit; 1055 goto errexit;
1056 *mdata.dir = '\0';
1056 mdata.dir++; 1057 mdata.dir++;
1057 char *end = strstr(mdata.dir, " "); 1058 char *end = strstr(mdata.dir, " ");
1058 if (!end) 1059 if (!end)