diff options
author | smitsohu <smitsohu@gmail.com> | 2019-01-20 19:07:43 +0100 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2019-01-20 19:07:43 +0100 |
commit | a26a25db063bcf174dc5c01688b7fd04228a77d8 (patch) | |
tree | 354193c96efac1aae82d96fb0f8f86d0e6376f07 /src/firejail/mountinfo.c | |
parent | disallow zero seconds timeout (diff) | |
download | firejail-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.c | 3 |
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. |
205 | char **build_mount_array(const int mount_id, const char *path) { | 204 | char **build_mount_array(const int mount_id, const char *path) { |
206 | assert(path); | 205 | assert(path); |