]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
unshare: fix a --map-auto error message
authorChris Webb <chris@arachsys.com>
Sun, 25 Dec 2022 16:34:37 +0000 (16:34 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Jan 2023 14:33:51 +0000 (15:33 +0100)
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

index f5fe046a89a69ca7f1ba67a9f4e05238d752e8b9..8313ee0a76f24c35a06a85858ce9ff5e28a9ea27 100644 (file)
@@ -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);
 }