mirror of https://github.com/mkerrisk/man-pages
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:
parent
6e94330a07
commit
32a72b3e1b
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue