diff options
author | 2018-05-01 11:37:50 -0400 | |
---|---|---|
committer | 2018-05-01 11:37:50 -0400 | |
commit | b041b2eb8951a60f85d3c6e534e490acea49f852 (patch) | |
tree | 9955aa30587e025b36f9c05020626a29e241a71c /src | |
parent | Merge branch 'master' of http://github.com/netblue30/firejail (diff) | |
download | firejail-b041b2eb8951a60f85d3c6e534e490acea49f852.tar.gz firejail-b041b2eb8951a60f85d3c6e534e490acea49f852.tar.zst firejail-b041b2eb8951a60f85d3c6e534e490acea49f852.zip |
small fix
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/util.c | 3 |
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) |