commit | 9f739445cd3deddd0343c3a8d5a981ede26bef30 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sat Dec 16 23:49:13 2006 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sat Dec 16 23:49:13 2006 +0000 |
tree | 6dc013e44d2281eb1e6f61c4bca1ae7546001f79 | |
parent | a597aaddfa76d589d3e1a37b1f1c3401c2decffd [diff] [blame] |
inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]
diff --git a/archival/tar.c b/archival/tar.c index 79c3595..ba7cb0f 100644 --- a/archival/tar.c +++ b/archival/tar.c
@@ -851,7 +851,7 @@ flags = O_RDONLY; } - if (tar_filename[0] == '-' && !tar_filename[1]) { + if (LONE_DASH(tar_filename)) { tar_handle->src_fd = fileno(tar_stream); tar_handle->seek = seek_by_read; } else {