busybox/coreutils
Denys Vlasenko c100535571 cat,nl: fix handling of open errors
$ cat -n does_not_exist; echo $?
cat: does_not_exist: No such file or directory
1

function                                             old     new   delta
print_numbered_lines                                 118     129     +11
nl_main                                              196     201      +5
cat_main                                             421     425      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 20/0)               Total: 20 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-11-29 11:44:10 +01:00
..
libcoreutils whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
basename.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
cat.c cat,nl: fix handling of open errors 2018-11-29 11:44:10 +01:00
chgrp.c
chmod.c
chown.c chown: fix a mistake in opt_complementary change 2017-12-31 17:59:16 +01:00
chroot.c
cksum.c cksum: code shrink 2018-02-01 11:44:52 +01:00
comm.c
Config.src restore documentation on the build config language 2018-06-06 15:16:48 +02:00
cp.c cp: placate gcc8 2018-08-01 18:29:41 +02:00
cut.c
date.c date: maybe_set_utc only once 2017-10-05 12:53:25 +02:00
dd.c dd: do not have 'ocount' variable if ibs/obs support is not enabled 2018-10-30 17:04:52 +01:00
df.c df: do "rootfs" check sooner 2018-02-23 17:08:32 +01:00
dirname.c
dos2unix.c
du.c
echo.c
env.c env: -u option fails due to typo 2017-12-25 21:36:05 +01:00
expand.c
expr.c
factor.c
false.c
fold.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
fsync.c
head.c
hostid.c
id_test.sh
id.c
install.c install: fix "-D -t DIR1/DIR2/DIR3" creating only DIR1/DIR2, closes 11106 2018-06-22 18:59:10 +02:00
Kbuild.src
link.c
ln.c
logname.c
ls.c unzip: use printable_string() for printing filenames 2018-09-30 16:56:56 +02:00
md5_sha1_sum.c md5sum: use config help text similar to other "sum" tools 2018-03-08 12:49:39 +01:00
mkdir.c
mkfifo.c
mknod.c mknod: better --help, much clearer code 2018-01-08 11:22:37 +01:00
mktemp.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
mv.c libbb: rename bb_ask -> bb_ask_noecho, bb_ask_confirmation -> bb_ask_y_confirmation 2018-04-07 15:08:12 +02:00
nice.c libbb.h: always include sys/resource.h 2018-04-08 17:23:27 +02:00
nl.c cat,nl: fix handling of open errors 2018-11-29 11:44:10 +01:00
nohup.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
nproc.c nproc: implement --all --ignore=N 2018-07-06 16:19:04 +02:00
od_bloaty.c od: move address_fmt[] from data to globals. 8 less bytes in data section 2018-02-22 12:14:55 +01:00
od.c
paste.c
printenv.c
printf.c printf: fix printf "%u\n" +18446744073709551614 2018-10-30 23:24:18 +01:00
pwd.c
readlink.c realpath,readlink -f: coreutils compat, closes 11021 2018-05-24 17:31:00 +02:00
realpath.c realpath,readlink -f: coreutils compat, closes 11021 2018-05-24 17:31:00 +02:00
rm.c
rmdir.c
seq.c
shred.c
shuf.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
sleep.c extend fractional duration support to "top -d N.N" and "timeout" 2018-08-03 18:17:12 +02:00
sort.c sort: add -V "sort version" 2018-07-08 01:37:54 +02:00
split.c
stat.c stat: fix a typo: s/romfs/ramfs/, closes 10876 2018-03-31 02:45:22 +02:00
stty.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
sum.c
sync.c
tac.c
tail.c
tee.c
test_ptr_hack.c
test.c shell: add comments about [[, no code changes 2018-04-10 15:25:41 +02:00
timeout.c timeout: fix arguments to match coreutils 2018-08-03 18:28:17 +02:00
touch.c
tr.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
true.c
truncate.c
tty.c
uname.c randomconfig fixes 2017-12-31 17:30:02 +01:00
uniq.c
unlink.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
usleep.c
uudecode.c
uuencode.c whitespace and comment format fixes, no code changes 2017-10-05 14:40:24 +02:00
wc.c
who.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
whoami.c
yes.c