unshare: fix a --map-auto error message
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().
Signed-off-by Chris Webb <[email protected]>
--- sys-utils/unshare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sys-utils/unshare.c +1 -1
@@ -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); }
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