Kept /dev/hdX from all having SCSI address 0,0,0

trunk@386
Thomas Schmitt 16 years ago
parent 29d630b141
commit b81aa81c61
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 4
      libburn/sg.c

@ -1 +1 @@
#define Cdrskin_timestamP "2006.09.27.120656"
#define Cdrskin_timestamP "2006.09.27.134332"

@ -835,6 +835,10 @@ int sg_obtain_scsi_adr(char *path, int *host_no, int *channel_no,
};
struct my_scsi_idlun idlun;
if (strncmp(path, "/dev/hd", 7) == 0
&& path[7] >= 'a' && path[7] <= 'z' && path[8] == 0)
return 0; /* on RIP 14 all hdx return SCSI adr 0,0,0,0 */
fd = open(path, O_RDONLY | O_NONBLOCK);
if(fd < 0)
return 0;

Loading…
Cancel
Save