ivman would not start if no CD drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ivman (Ubuntu) |
Fix Released
|
Medium
|
Pascal De Vuyst |
Bug Description
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 <email address hidden>
Architecture: i386
Version: 0.6.14-2ubuntu1
(...)
# ivman
manager.c:1387 (do_startup_
/bin/sh: /proc/sys/
# 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.
=======
--- ivman-0.
+++ ivman-0.
@@ -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("/
Changed in ivman: | |
importance: | Undecided → Medium |
Changed in ivman: | |
status: | Confirmed → Triaged |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:
* Is this reproducible?
* If so, what specific steps should we take to recreate this bug?
This will help us to find and resolve the problem.