diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-12-19 20:49:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-12-19 20:49:19 +0000 |
commit | a033de58c091af821e3323963be6ce6dcf101afc (patch) | |
tree | a5f452a614e3e4a64cbd96035c754f55dc733818 /autoirpm.update-all.cc | |
parent | 1dee2c62b8b19cefa4dbf096027428ef786ec057 (diff) | |
download | urpmi-a033de58c091af821e3323963be6ce6dcf101afc.tar urpmi-a033de58c091af821e3323963be6ce6dcf101afc.tar.gz urpmi-a033de58c091af821e3323963be6ce6dcf101afc.tar.bz2 urpmi-a033de58c091af821e3323963be6ce6dcf101afc.tar.xz urpmi-a033de58c091af821e3323963be6ce6dcf101afc.zip |
no_comment
Diffstat (limited to 'autoirpm.update-all.cc')
-rw-r--r-- | autoirpm.update-all.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoirpm.update-all.cc b/autoirpm.update-all.cc index db2ee5a2..3d13899e 100644 --- a/autoirpm.update-all.cc +++ b/autoirpm.update-all.cc @@ -35,7 +35,7 @@ int main(int argc, char **argv) { for (int i = 3; i < argc; i++) { Header header; - FD_t fd = fdOpen(argv[i], O_RDONLY, 0); + FD_t fd = strcmp(argv[i], "-") == 0 ? fdDup(STDIN_FILENO) : fdOpen(argv[i], O_RDONLY, 0); if (fdFileno(fd) < 0) { fprintf(stderr, "%s: cannot open file %s\n", argv[0], argv[i]); exit(1); |