util-linux/term-utils
Petr Uzel 2754ffc5f5 setterm: make error message more informative
If `setterm -dump` fails because of lack of permission to read
/dev/vcsa, it should not report that it couldn't read /dev/vcsa0.
This could be misleading if there is only /dev/vcsa, but not /dev/vcsa0.

Before:
$ ./setterm -dump
setterm: Couldn't read /dev/vcsa0

After:
$ ./setterm -dump
setterm: Couldn't read neither /dev/vcsa0 nor /dev/vcsa

(Note: /dev/vcsa0 does not exist and the user does not have read
permission on /dev/vcsa in this case).

Addresses: https://bugzilla.novell.com/show_bug.cgi?id=780615
Reported-by: Christopher Yeleighton <giecrilj@stegny.2a.pl>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-09-21 12:14:14 +02:00
..
Makemodule.am build-sys: always use default $(LDADD) 2012-07-09 16:23:51 +02:00
agetty.8 agetty: add \4 and \6 issue file sequences to print IP addresses 2012-09-13 12:59:46 +02:00
agetty.c agetty: add \4 and \6 issue file sequences to print IP addresses 2012-09-13 12:59:46 +02:00
mesg.1 docs: fix all man page groff warnings 2012-06-02 20:29:12 +02:00
mesg.c translation: unify stat error messages 2012-07-16 18:18:22 +02:00
reset reset: make scripts bourne sh compliant [checkbashisms] 2012-03-30 16:48:12 +02:00
reset.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
reset.033c reset: make scripts bourne sh compliant [checkbashisms] 2012-03-30 16:48:12 +02:00
script.1 docs: align script.1 with howto-man-page.txt 2011-10-03 20:32:45 +02:00
script.c script: add noreturn function attributes 2012-07-26 13:51:33 +02:00
scriptreplay.1 docs: fix all man page groff warnings 2012-06-02 20:29:12 +02:00
scriptreplay.c scriptreplay: fix compiler warning [-Wmissing-prototypes] 2012-07-16 18:48:27 +02:00
setterm.1 setterm: order man page items alphabetically 2011-12-16 11:25:10 +01:00
setterm.c setterm: make error message more informative 2012-09-21 12:14:14 +02:00
ttymsg.c term-utils: verify writing to streams was successful 2012-04-04 19:46:25 +02:00
ttymsg.h ttymsg: fix compiler warnings and use EXIT_ 2011-04-12 11:19:15 +02:00
wall.1 Fix typos in comments and wall's man page 2012-06-05 14:37:26 +02:00
wall.c translation: unify file open error messages 2012-07-16 18:18:22 +02:00
write.1 docs: uniformize the header and footer lines in man pages 2011-08-22 10:39:21 +02:00
write.c write: Don't explicitly include <asm/param.h>. 2012-05-29 10:11:41 +02:00