diff options
author | Rob Landley <rob@landley.net> | 2016-02-29 23:30:03 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-02-29 23:30:03 -0600 |
commit | c1161cf09f5d9646b0e0c6ec504ed26a0623e691 (patch) | |
tree | c42eba875bc5f7a59a09ab5bffad10b2bd36c89d /toys | |
parent | 226c1cb1dc86e8545c0f05886149a07c40a88162 (diff) | |
download | toybox-c1161cf09f5d9646b0e0c6ec504ed26a0623e691.tar.gz |
do_regular_file() prints output line, don't fall through to print default.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/pending/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/toys/pending/file.c b/toys/pending/file.c index 49f987c6..e4820a3b 100644 --- a/toys/pending/file.c +++ b/toys/pending/file.c @@ -248,7 +248,10 @@ void file_main(void) if (fd!=-1) { if (sb.st_size == 0) what = "empty"; - else do_regular_file(fd, name); + else { + do_regular_file(fd, name); + continue; + } } if (fd>0) close(fd); } else if (S_ISBLK(sb.st_mode)) what = "block special"; |