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

1.1.8
Thomas Schmitt 11 years ago
parent 854ebd647c
commit afe242f920
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 3
      libburn/sg-linux.c

@ -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;
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);
if (ret <= 0)
return ret;

Loading…
Cancel
Save