]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
eject: remove a duplicate command name from error message
authorSami Kerola <kerolasa@iki.fi>
Wed, 30 Jan 2013 20:33:25 +0000 (20:33 +0000)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Feb 2013 10:51:19 +0000 (11:51 +0100)
Let the err() print the command name.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/eject.c

index e28837155e761deebd63737b6ba89ab891afae29..a5b56565d89bf23b007868ea43b69465ea3c5bb3 100644 (file)
@@ -655,7 +655,7 @@ static void umount_one(const char *name)
                        err(EXIT_FAILURE, _("cannot set group id"));
 
                if (setuid(getuid()) < 0)
-                       err(EXIT_FAILURE, _("eject: cannot set user id"));
+                       err(EXIT_FAILURE, _("cannot set user id"));
 
                if (p_option)
                        execl("/bin/umount", "/bin/umount", name, "-n", NULL);