Avoiding on Linux to list drives from /proc if device family is non-default

This commit is contained in:
Thomas Schmitt 2011-11-02 07:43:58 +00:00
parent 854ebd647c
commit afe242f920
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.11.01.221713" #define Cdrskin_timestamP "2011.11.02.074334"

View File

@ -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;