diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-06-23 20:56:45 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-06-23 20:56:45 +0200 |
commit | 09b1850ff27e492d74791bdbf44d25154d007e98 (patch) | |
tree | fb26ae9c029314a2b48d1306764af4a0e34bc742 /src/utils.c | |
parent | 2cb07736d36a8116d4fa390bc116f6b94d479ded (diff) |
fixed valgrind mount complaints (does not like NULL as src/fstype)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c index 08229d9..71709f6 100644 --- a/src/utils.c +++ b/src/utils.c @@ -462,9 +462,9 @@ void chk_chroot(void) void mount_root(void) { int s; - s = mount("none", "/", NULL, MS_SLAVE|MS_REC, NULL); + s = mount("none", "/", "none", MS_SLAVE|MS_REC, NULL); if (s) - s = mount("none", "/", NULL, MS_PRIVATE|MS_REC, NULL); + s = mount("none", "/", "none", MS_PRIVATE|MS_REC, NULL); if (s) chk_chroot(); } @@ -597,7 +597,7 @@ error: */ if (RUNNING_ON_VALGRIND) { W2("%s", "Running on valgrind, using unshare instead of setns and " - "ignoring erros before .."); + "ignoring errors before .."); return unshare(CLONE_NEWNET) != 0; } #endif |