From: Johan Herland Date: Thu, 6 May 2021 22:53:29 +0000 (+0200) Subject: unshare: Fix error message when setting proc mount propagation X-Git-Tag: v2.37-rc2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b657529cc886976adef2ec8b2fe5a224e929ffd;p=thirdparty%2Futil-linux.git 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. --- diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index cd5fe68f8c..e5627d3c64 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); }