From 9b657529cc886976adef2ec8b2fe5a224e929ffd Mon Sep 17 00:00:00 2001 From: Johan Herland Date: Fri, 7 May 2021 00:53:29 +0200 Subject: [PATCH] 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. --- sys-utils/unshare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index cd5fe68f8..e5627d3c6 100644 --- a/sys-utils/unshare.c +++ b/sys-utils/unshare.c @@ -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); }