Skip to contentSkip to conversation

unshare: fix a --map-auto error message

PATCH Applied Chris Webb 2 participants 2 messages Dec 25, 2022 – Jan 3, 2023 Util-Linux package

lore
Share & tools
lore

Chris Webb

author
#0 lore raw

PATCH 1/1 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().

---
 sys-utils/unshare.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sys-utils/unshare.c +1 -1
index f5fe046a8..8313ee0a7 100644
@@ -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);
 }
 
maintainer Applied
#1 lore raw
Quoted 2 lines · Chris Webb
 sys-utils/unshare.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com