aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/mountinfo.c
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2019-01-20 19:07:43 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2019-01-20 19:07:43 +0100
commita26a25db063bcf174dc5c01688b7fd04228a77d8 (patch)
tree354193c96efac1aae82d96fb0f8f86d0e6376f07 /src/firejail/mountinfo.c
parentdisallow zero seconds timeout (diff)
downloadfirejail-a26a25db063bcf174dc5c01688b7fd04228a77d8.tar.gz
firejail-a26a25db063bcf174dc5c01688b7fd04228a77d8.tar.zst
firejail-a26a25db063bcf174dc5c01688b7fd04228a77d8.zip
cleanup, minor improvements
Diffstat (limited to 'src/firejail/mountinfo.c')
-rw-r--r--src/firejail/mountinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/firejail/mountinfo.c b/src/firejail/mountinfo.c
index c89845ace..02c28cc5e 100644
--- a/src/firejail/mountinfo.c
+++ b/src/firejail/mountinfo.c
@@ -199,8 +199,7 @@ int get_mount_id(const char *path) {
199 return -2; 199 return -2;
200} 200}
201 201
202// Check /proc/self/mountinfo if path has any submounts (or if path would have submounts 202// Check /proc/self/mountinfo if path contains any mounts points.
203// if it was made a mount point).
204// Returns an array that can be iterated over for recursive remounting. 203// Returns an array that can be iterated over for recursive remounting.
205char **build_mount_array(const int mount_id, const char *path) { 204char **build_mount_array(const int mount_id, const char *path) {
206 assert(path); 205 assert(path);