diff options
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 |