summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-03-19 19:07:01 +0000
committerMike Fulbright <msf@redhat.com>2003-03-19 19:07:01 +0000
commitf867b595da7b57496af4a0cf32b2834740589aff (patch)
tree5b2afc567c0026b8226394a7bea82148667adb47
parentaaf93139005c97ab7002451ed6f28e2d37c8b216 (diff)
downloadanaconda-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.c2
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)