Avoiding on Linux to list drives from /proc if device family is non-default
This commit is contained in:
parent
3ee13ec9c0
commit
a0f86d7e9e
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2011.11.01.221713"
|
#define Cdrskin_timestamP "2011.11.02.074334"
|
||||||
|
@ -1257,6 +1257,9 @@ static int add_proc_info_drives(int flag)
|
|||||||
int ret, list_count, count = 0, i;
|
int ret, list_count, count = 0, i;
|
||||||
char **list= NULL;
|
char **list= NULL;
|
||||||
|
|
||||||
|
if (burn_sg_use_family != 0)
|
||||||
|
return(1); /* Looking only for sr resp. scd resp. sg */
|
||||||
|
|
||||||
ret = proc_sys_dev_cdrom_info(&list, &list_count, 0);
|
ret = proc_sys_dev_cdrom_info(&list, &list_count, 0);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user