|
Lines 454-460
scanopen:
Link Here
|
| 454 |
if (scgp->errstr) |
454 |
if (scgp->errstr) |
| 455 |
js_snprintf(scgp->errstr, SCSI_ERRSTR_SIZE, |
455 |
js_snprintf(scgp->errstr, SCSI_ERRSTR_SIZE, |
| 456 |
"Cannot open '/dev/sg*'"); |
456 |
"Cannot open '/dev/sg*'"); |
| 457 |
if (errno != ENOENT && errno != ENXIO && errno != ENODEV) { |
457 |
if (errno != ENOENT && errno != ENXIO && errno != ENODEV && errno != EACCES) { |
| 458 |
if (scgp->errstr) |
458 |
if (scgp->errstr) |
| 459 |
js_snprintf(scgp->errstr, SCSI_ERRSTR_SIZE, |
459 |
js_snprintf(scgp->errstr, SCSI_ERRSTR_SIZE, |
| 460 |
"Cannot open '%s'", devname); |
460 |
"Cannot open '%s'", devname); |