Activity log for bug #215656

Date Who What changed Old value New value Message
2008-04-11 12:22:15 Bruno bug added bug
2008-04-11 12:57:46 Patrick Kilgore title [gutsy] ivman would not start if no cdrom ivman would not start if no cdrom
2008-04-11 13:05:29 Patrick Kilgore ivman: status New Incomplete
2008-04-11 13:47:39 Bruno description Binary package hint: ivman ivman would not start if there is no cdrom. I am using gutsy (Ubuntu 7.10) # dpkg -s ivman Package: ivman Status: install ok installed Priority: optional Section: utils Installed-Size: 284 Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com> Architecture: i386 Version: 0.6.14-2ubuntu1 (...) # ivman manager.c:1387 (do_startup_configure) Directory /etc/ivman/ will be used for configuration files. /bin/sh: /proc/sys/dev/cdrom/lock: No such file or directory The solution is simple, add code to check the presence of cdrom before trying to use it (borrowed from debian package) Index: ivman-0.6.14/src/manager.c =================================================================== --- ivman-0.6.14.orig/src/manager.c 2007-05-28 10:30:10.000000000 +0200 +++ ivman-0.6.14/src/manager.c 2007-05-28 10:31:29.000000000 +0200 @@ -1411,7 +1411,9 @@ } // Permanently unlock CD / DVD drive - if ( geteuid() == 0 ) + // Silently ignore not existing CD / DVD drive + struct stat statistic; + if ( geteuid() == 0 && stat("/proc/sys/dev/cdrom/lock",&statistic) == 0 ) ivm_run_command( "echo 0 > /proc/sys/dev/cdrom/lock", NULL, FALSE ); Binary package hint: ivman ivman would not start if there is no CD drive in the machine. I am using gutsy (Ubuntu 7.10) # dpkg -s ivman Package: ivman Status: install ok installed Priority: optional Section: utils Installed-Size: 284 Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com> Architecture: i386 Version: 0.6.14-2ubuntu1 (...) # ivman manager.c:1387 (do_startup_configure) Directory /etc/ivman/ will be used for configuration files. /bin/sh: /proc/sys/dev/cdrom/lock: No such file or directory # ls /proc/sys/dev ath mac_hid parport rtc scsi wifi0 The solution is simple, add code to check the presence of CD drive before trying to use it (borrowed from debian package) Index: ivman-0.6.14/src/manager.c =================================================================== --- ivman-0.6.14.orig/src/manager.c 2007-05-28 10:30:10.000000000 +0200 +++ ivman-0.6.14/src/manager.c 2007-05-28 10:31:29.000000000 +0200 @@ -1411,7 +1411,9 @@ } // Permanently unlock CD / DVD drive - if ( geteuid() == 0 ) + // Silently ignore not existing CD / DVD drive + struct stat statistic; + if ( geteuid() == 0 && stat("/proc/sys/dev/cdrom/lock",&statistic) == 0 ) ivm_run_command( "echo 0 > /proc/sys/dev/cdrom/lock", NULL, FALSE );
2008-04-11 13:47:39 Bruno title ivman would not start if no cdrom ivman would not start if no CD drive
2008-05-14 00:28:58 Patrick Kilgore ivman: status Incomplete Confirmed
2008-06-05 00:48:05 Patrick Kilgore ivman: importance Undecided Medium
2008-08-03 12:20:37 Pascal De Vuyst ivman: status Confirmed Triaged
2008-08-03 12:25:42 Pascal De Vuyst ivman: status Triaged Fix Released
2008-08-03 12:25:42 Pascal De Vuyst ivman: assignee pascal-devuyst