aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-02-29 23:30:03 -0600
committerRob Landley <rob@landley.net>2016-02-29 23:30:03 -0600
commitc1161cf09f5d9646b0e0c6ec504ed26a0623e691 (patch)
treec42eba875bc5f7a59a09ab5bffad10b2bd36c89d /toys
parent226c1cb1dc86e8545c0f05886149a07c40a88162 (diff)
downloadtoybox-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.c5
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";