Commit 78642d08 authored by Thomas Schmitt's avatar Thomas Schmitt

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

parent c2c24998
#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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment