From e05ab331d48963c233ad5ba870dbc8d2c970145b Mon Sep 17 00:00:00 2001 From: Chris Webb Date: Sun, 25 Dec 2022 16:34:37 +0000 Subject: [PATCH] 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 --- 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 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); } -- 2.47.2