From 32a72b3e1b99a77d1a2a2bc72668f56c607cfb0d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 26 Nov 2020 10:30:35 +0100 Subject: [PATCH] pivot_root.2: tfix Reported-by: Davide Giorgio Signed-off-by: Michael Kerrisk --- man2/pivot_root.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/pivot_root.2 b/man2/pivot_root.2 index 8376ac878..98c531de4 100644 --- a/man2/pivot_root.2 +++ b/man2/pivot_root.2 @@ -349,7 +349,7 @@ child(void *arg) return an error), and prevent propagation of mount events to the initial mount namespace */ - if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL) == 1) + if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL) == \-1) errExit("mount\-MS_PRIVATE"); /* Ensure that \(aqnew_root\(aq is a mount point */