diff options
author | jbj <devnull@localhost> | 1998-11-19 18:10:28 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1998-11-19 18:10:28 +0000 |
commit | dc7ee4090deb5638aee8837f7cad73840cf74e5f (patch) | |
tree | b8cd581593e4b4cb6aa1edf340b8156403222855 /rpm2cpio.c | |
parent | 2578b7fc8451f06f83640b448bda098e295447cb (diff) | |
download | rpm-dc7ee4090deb5638aee8837f7cad73840cf74e5f.tar.gz rpm-dc7ee4090deb5638aee8837f7cad73840cf74e5f.tar.bz2 rpm-dc7ee4090deb5638aee8837f7cad73840cf74e5f.zip |
finish hiding rpmdb index record data ("matches").
CVS patchset: 2543
CVS date: 1998/11/19 18:10:28
Diffstat (limited to 'rpm2cpio.c')
-rw-r--r-- | rpm2cpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpm2cpio.c b/rpm2cpio.c index 7292bcc6c..abe8ad70d 100644 --- a/rpm2cpio.c +++ b/rpm2cpio.c @@ -23,7 +23,7 @@ int main(int argc, char **argv) gzFile stream; if (argc == 1) { - fdi = fdDup(0); + fdi = fdDup(STDIN_FILENO); } else { fdi = fdOpen(argv[1], O_RDONLY, 0644); } @@ -32,7 +32,7 @@ int main(int argc, char **argv) perror("cannot open package"); exit(1); } - fdo = fdDup(1); + fdo = fdDup(STDOUT_FILENO); rc = rpmReadPackageHeader(fdi, &hd, &isSource, NULL, NULL); if (rc == 1) { |