summaryrefslogtreecommitdiff
path: root/lib/package.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1998-11-20 20:18:22 +0000
committerjbj <devnull@localhost>1998-11-20 20:18:22 +0000
commita15a36abd12dba7dcf5cab390100dfcbc16dd6b8 (patch)
tree95578f21fd63f1fd2afdc18d1019d9346bc695a9 /lib/package.c
parent8f2a5b4031cba427d46b8d19a8da5d30eddb2f4a (diff)
downloadlibrpm-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.c2
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;