From eaac38564e823c7b4642710be153018eadf2c1cc Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 27 Sep 2006 13:41:19 +0000 Subject: [PATCH] Kept /dev/hdX from all having SCSI address 0,0,0 --- trunk/cdrskin/cdrskin_timestamp.h | 2 +- trunk/libburn/sg.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/trunk/cdrskin/cdrskin_timestamp.h b/trunk/cdrskin/cdrskin_timestamp.h index 8f9f5a68..04b58cd7 100644 --- a/trunk/cdrskin/cdrskin_timestamp.h +++ b/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2006.09.27.120656" +#define Cdrskin_timestamP "2006.09.27.134332" diff --git a/trunk/libburn/sg.c b/trunk/libburn/sg.c index fcc7f52e..9ab666c1 100644 --- a/trunk/libburn/sg.c +++ b/trunk/libburn/sg.c @@ -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;