unshare: Fix error message when setting proc mount propagation
The mount() command associated with this error message is not about unmounting the proc fs, but rather about changing the propagation of mount events for the proc fs. Rewrite the error message to reflect this.
This commit is contained in:
parent
185bc3a832
commit
9b657529cc
|
@ -651,7 +651,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (procmnt) {
|
||||
if (!newroot && mount("none", procmnt, NULL, MS_PRIVATE|MS_REC, NULL) != 0)
|
||||
err(EXIT_FAILURE, _("umount %s failed"), procmnt);
|
||||
err(EXIT_FAILURE, _("cannot change %s filesystem propagation"), procmnt);
|
||||
if (mount("proc", procmnt, "proc", MS_NOSUID|MS_NOEXEC|MS_NODEV, NULL) != 0)
|
||||
err(EXIT_FAILURE, _("mount %s failed"), procmnt);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue