Bug fix, read errors are now handled propertly.

release-1.5.4.branch
Vreixo Formoso 15 years ago
parent 444689d163
commit e57b51a160
  1. 4
      libisofs/filesrc.c

@ -302,6 +302,10 @@ int filesrc_writer_write_data(IsoImageWriter *writer)
for (b = 0; b < nblocks; ++b) {
int wres;
res = filesrc_read(file, buffer, BLOCK_SIZE);
if (res <= 0) {
/* read error */
break;
}
wres = iso_write(t, buffer, BLOCK_SIZE);
if (wres < 0) {
/* ko, writer error, we need to go out! */

Loading…
Cancel
Save