From afe242f9202247732d75a512a23998b59035ed19 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 2 Nov 2011 07:43:58 +0000 Subject: [PATCH] Avoiding on Linux to list drives from /proc if device family is non-default --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/sg-linux.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 826ef04..dd9c1da 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.11.01.221713" +#define Cdrskin_timestamP "2011.11.02.074334" diff --git a/libburn/sg-linux.c b/libburn/sg-linux.c index 39f46d1..a818e3f 100644 --- a/libburn/sg-linux.c +++ b/libburn/sg-linux.c @@ -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;