diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-16 23:49:13 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-16 23:49:13 +0000 |
commit | 8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9 (patch) | |
tree | 6dc013e44d2281eb1e6f61c4bca1ae7546001f79 /coreutils/tail.c | |
parent | b0ba03e9b3d460154fd09ef5676c18bf0770fdce (diff) | |
download | busybox-w32-8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9.tar.gz busybox-w32-8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9.tar.bz2 busybox-w32-8037e89b2e9c5a485bd57f4fe40f4659c25ca7b9.zip |
inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]
git-svn-id: svn://busybox.net/trunk/busybox@16977 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/tail.c')
-rw-r--r-- | coreutils/tail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/tail.c b/coreutils/tail.c index ed5ea1467..4c3c3b901 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c | |||
@@ -176,8 +176,8 @@ int tail_main(int argc, char **argv) | |||
176 | } | 176 | } |
177 | 177 | ||
178 | do { | 178 | do { |
179 | if ((argv[i][0] == '-') && !argv[i][1]) { | 179 | if (LONE_DASH(argv[i])) { |
180 | DO_STDIN: | 180 | DO_STDIN: |
181 | fds[nfiles] = STDIN_FILENO; | 181 | fds[nfiles] = STDIN_FILENO; |
182 | } else if ((fds[nfiles] = open(argv[i], O_RDONLY)) < 0) { | 182 | } else if ((fds[nfiles] = open(argv[i], O_RDONLY)) < 0) { |
183 | bb_perror_msg("%s", argv[i]); | 183 | bb_perror_msg("%s", argv[i]); |