diff options
author | Mike Fulbright <msf@redhat.com> | 2003-03-19 19:07:01 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-03-19 19:07:01 +0000 |
commit | f867b595da7b57496af4a0cf32b2834740589aff (patch) | |
tree | 5b2afc567c0026b8226394a7bea82148667adb47 | |
parent | aaf93139005c97ab7002451ed6f28e2d37c8b216 (diff) | |
download | anaconda-f867b595da7b57496af4a0cf32b2834740589aff.tar.gz anaconda-f867b595da7b57496af4a0cf32b2834740589aff.tar.xz anaconda-f867b595da7b57496af4a0cf32b2834740589aff.zip |
need to error out if couldnt read any data (zero length iso?)
-rw-r--r-- | isomd5sum/implantisomd5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isomd5sum/implantisomd5.c b/isomd5sum/implantisomd5.c index 76466e44b..2e127b769 100644 --- a/isomd5sum/implantisomd5.c +++ b/isomd5sum/implantisomd5.c @@ -33,7 +33,7 @@ int parsepvd(int isofd, char *mediasum, long long *isosize) { offset = (16L * 2048L); for (;1;) { - if (read(isofd, buf, 2048) < 0) + if (read(isofd, buf, 2048) <= 0) return ((long long)-1); if (buf[0] == 1) |