From: Sami Kerola Date: Thu, 5 Apr 2012 20:40:47 +0000 (+0200) Subject: eject: inform why open failed X-Git-Tag: v2.22-rc1~547 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38de283e352714fc1462cffb91b41f8f1a3fc7f8;p=thirdparty%2Futil-linux.git eject: inform why open failed Mostly to cover common case when user does not have permission to use eject. Signed-off-by: Sami Kerola --- diff --git a/sys-utils/eject.c b/sys-utils/eject.c index 245c028365..aa45c181c1 100644 --- a/sys-utils/eject.c +++ b/sys-utils/eject.c @@ -673,7 +673,7 @@ static int open_device(const char *name) if (fd < 0) fd = open(name, O_RDONLY|O_NONBLOCK); if (fd == -1) - errx(EXIT_FAILURE, _("%s: open failed"), name); + err(EXIT_FAILURE, _("%s: open failed"), name); return fd; }