From a0f86d7e9ee6feb6bbd46fd7d8ac71574e8062c9 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 --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/sg-linux.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 826ef041..dd9c1da6 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.11.01.221713" +#define Cdrskin_timestamP "2011.11.02.074334" diff --git a/libburn/trunk/libburn/sg-linux.c b/libburn/trunk/libburn/sg-linux.c index 39f46d19..a818e3f2 100644 --- a/libburn/trunk/libburn/sg-linux.c +++ b/libburn/trunk/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;