From: Chris Webb Date: Sun, 25 Dec 2022 16:34:37 +0000 (+0000) Subject: unshare: fix a --map-auto error message X-Git-Tag: v2.39-rc1~217 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e05ab331d48963c233ad5ba870dbc8d2c970145b;p=thirdparty%2Futil-linux.git unshare: fix a --map-auto error message When --map-auto is used by a user not listed in /etc/subuid, the error unshare: no line matching user "foo" in /etc/subuid: No error information is emitted. Fix the stray ': No error information', correcting err() to the intended errx(). Signed-off-by: Chris Webb --- diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index f5fe046a89..8313ee0a76 100644 --- a/sys-utils/unshare.c +++ b/sys-utils/unshare.c @@ -485,7 +485,7 @@ static struct map_range *read_subid_range(char *filename, uid_t uid) return map; } - err(EXIT_FAILURE, _("no line matching user \"%s\" in %s"), + errx(EXIT_FAILURE, _("no line matching user \"%s\" in %s"), pw->pw_name, filename); }