commit | c1161cf09f5d9646b0e0c6ec504ed26a0623e691 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Mon Feb 29 23:30:03 2016 -0600 |
committer | Rob Landley <rob@landley.net> | Mon Feb 29 23:30:03 2016 -0600 |
tree | c42eba875bc5f7a59a09ab5bffad10b2bd36c89d | |
parent | 226c1cb1dc86e8545c0f05886149a07c40a88162 [diff] |
do_regular_file() prints output line, don't fall through to print default.
diff --git a/toys/pending/file.c b/toys/pending/file.c index 49f987c..e4820a3 100644 --- a/toys/pending/file.c +++ b/toys/pending/file.c
@@ -248,7 +248,10 @@ 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";