pivot_root.2: tfix

Reported-by: Davide Giorgio <davide@giorgiodavide.it>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-11-26 10:30:35 +01:00
parent 6e94330a07
commit 32a72b3e1b
1 changed files with 1 additions and 1 deletions

View File

@ -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 */