Made burn_read_data() issue messages about hopeless drive access errors

This commit is contained in:
Thomas Schmitt 2008-01-23 19:34:38 +00:00
parent 775d21a794
commit 3e8835cca0
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2008.01.19.201702"
#define Cdrskin_timestamP "2008.01.23.193345"

View File

@ -377,7 +377,7 @@ int burn_read_data(struct burn_drive *d, off_t byte_address,
fd = open(d->devname, O_RDONLY | O_LARGEFILE);
if (fd == -1) {
if (!(flag & 2))
if (errno != ENOENT || !(flag & 2))
libdax_msgs_submit(libdax_messenger,
d->global_index,
0x00020005,