Added forgotten handling of "sdtio:" with burn_drive_equals_adr()

This commit is contained in:
Thomas Schmitt 2007-09-24 06:24:02 +00:00
parent 9e4996a3b5
commit 83fe9f3621
2 changed files with 8 additions and 4 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.09.23.163529" #define Cdrskin_timestamP "2007.09.24.062354"

View File

@ -2230,10 +2230,10 @@ static int burn__split_path(char *adr, char **dpt, char **npt)
/* ts A70923 : API */ /* ts A70923 : API */
int burn_drive_equals_adr(struct burn_drive *d1, char *adr2, int role2) int burn_drive_equals_adr(struct burn_drive *d1, char *adr2_in, int role2)
{ {
struct stat stbuf1, stbuf2; struct stat stbuf1, stbuf2;
char adr1[BURN_DRIVE_ADR_LEN]; char adr1[BURN_DRIVE_ADR_LEN], *adr2 = adr2_in;
char conv_adr1[BURN_DRIVE_ADR_LEN], conv_adr2[BURN_DRIVE_ADR_LEN]; char conv_adr1[BURN_DRIVE_ADR_LEN], conv_adr2[BURN_DRIVE_ADR_LEN];
char *npt1, *dpt1, *npt2, *dpt2; char *npt1, *dpt1, *npt2, *dpt2;
int role1, stat_ret1, stat_ret2, conv_ret2; int role1, stat_ret1, stat_ret2, conv_ret2;
@ -2242,6 +2242,10 @@ int burn_drive_equals_adr(struct burn_drive *d1, char *adr2, int role2)
burn_drive_d_get_adr(d1, adr1); burn_drive_d_get_adr(d1, adr1);
stat_ret1 = stat(adr1, &stbuf1); stat_ret1 = stat(adr1, &stbuf1);
if (strncmp(adr2, "stdio:", 6) == 0) {
adr2+= 6;
role2 = (!!adr2[0]) * 2;
}
if (strlen(adr2) >= BURN_DRIVE_ADR_LEN) if (strlen(adr2) >= BURN_DRIVE_ADR_LEN)
return -1; return -1;
stat_ret2 = stat(adr2, &stbuf2); stat_ret2 = stat(adr2, &stbuf2);