diff options
author | jbj <devnull@localhost> | 1998-11-20 20:18:22 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1998-11-20 20:18:22 +0000 |
commit | a15a36abd12dba7dcf5cab390100dfcbc16dd6b8 (patch) | |
tree | 95578f21fd63f1fd2afdc18d1019d9346bc695a9 /lib/package.c | |
parent | 8f2a5b4031cba427d46b8d19a8da5d30eddb2f4a (diff) | |
download | librpm-tizen-a15a36abd12dba7dcf5cab390100dfcbc16dd6b8.tar.gz librpm-tizen-a15a36abd12dba7dcf5cab390100dfcbc16dd6b8.tar.bz2 librpm-tizen-a15a36abd12dba7dcf5cab390100dfcbc16dd6b8.zip |
Sanity.
CVS patchset: 2551
CVS date: 1998/11/20 20:18:22
Diffstat (limited to 'lib/package.c')
-rw-r--r-- | lib/package.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/package.c b/lib/package.c index 24c0f369b..8f51828f9 100644 --- a/lib/package.c +++ b/lib/package.c @@ -33,7 +33,7 @@ static int readPackageHeaders(FD_t fd, struct rpmlead * leadPtr, oldLead = (struct oldrpmlead *) lead; - fdFstat(fd, &sb); + fstat(fdFileno(fd), &sb); /* if fd points to a socket, pipe, etc, sb.st_size is *always* zero */ if (S_ISREG(sb.st_mode) && sb.st_size < sizeof(*lead)) return 1; |