From 09b1850ff27e492d74791bdbf44d25154d007e98 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 23 Jun 2018 20:56:45 +0200 Subject: fixed valgrind mount complaints (does not like NULL as src/fstype) Signed-off-by: Toni Uhlig --- src/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils.c') 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 -- cgit v1.2.3