[PATCH] unshare: fix a --map-auto error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>
---
 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);
 }
 



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux