diff options
-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"; |