* [PATCH] unshare: fix a --map-auto error message
@ 2022-12-25 16:34 Chris Webb
2023-01-03 14:35 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Chris Webb @ 2022-12-25 16:34 UTC (permalink / raw)
To: util-linux
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 <chris@arachsys.com>
---
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 f5fe046a8..8313ee0a7 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);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] unshare: fix a --map-auto error message
2022-12-25 16:34 [PATCH] unshare: fix a --map-auto error message Chris Webb
@ 2023-01-03 14:35 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2023-01-03 14:35 UTC (permalink / raw)
To: Chris Webb; +Cc: util-linux
On Sun, Dec 25, 2022 at 04:34:37PM +0000, Chris Webb wrote:
> sys-utils/unshare.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-03 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-25 16:34 [PATCH] unshare: fix a --map-auto error message Chris Webb
2023-01-03 14:35 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).