Bug fix: /dev/sr0 was accepted as enumerable address on Linux 2.4

ZeroFiveFour
Thomas Schmitt 14 years ago
parent c2c2499862
commit 78642d08ae
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 3
      libburn/sg-linux.c

@ -1 +1 @@
#define Cdrskin_timestamP "2008.09.28.193802"
#define Cdrskin_timestamP "2008.09.28.211741"

@ -1216,6 +1216,9 @@ static int proc_sys_dev_cdrom_info(char ***list, int *count, int flag)
return 1;
*count = 0;
sg_evaluate_kernel();
if (sg_kernel_age < 2) /* addresses are not suitable for kernel 2.4 */
return 1;
fp = fopen("/proc/sys/dev/cdrom/info", "r");
if (fp == NULL)
return 0;

Loading…
Cancel
Save