public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] eject: inform why open failed
@ 2012-04-05 20:40 Sami Kerola
  2012-04-05 20:40 ` [PATCH 2/3] eject: close open file [cppcheck] Sami Kerola
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sami Kerola @ 2012-04-05 20:40 UTC (permalink / raw)
  To: util-linux; +Cc: kerolasa

Mostly to cover common case when user does not have permission to use
eject.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
 sys-utils/eject.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-utils/eject.c b/sys-utils/eject.c
index 2d8b0cb..790ab3a 100644
--- a/sys-utils/eject.c
+++ b/sys-utils/eject.c
@@ -661,7 +661,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;
 }
 
-- 
1.7.9.6


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-10 10:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05 20:40 [PATCH 1/3] eject: inform why open failed Sami Kerola
2012-04-05 20:40 ` [PATCH 2/3] eject: close open file [cppcheck] Sami Kerola
2012-04-10 10:33   ` Karel Zak
2012-04-05 20:40 ` [PATCH 3/3] docs: eject.1: align with Documentation/howto-man-page.txt Sami Kerola
2012-04-10 10:33   ` Karel Zak
2012-04-10 10:32 ` [PATCH 1/3] eject: inform why open failed Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox