kadischi/eject_live_cd eject_live_cd.c,1.6,1.7
Jasper O'neal Hartline (autopsy)
fedora-extras-commits at redhat.com
Tue Apr 17 15:25:11 UTC 2007
Author: autopsy
Update of /cvs/devel/kadischi/eject_live_cd
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21905/kadischi/eject_live_cd
Modified Files:
eject_live_cd.c
Log Message:
Fix eject_live_cd.c for USB CDROM devices
Index: eject_live_cd.c
===================================================================
RCS file: /cvs/devel/kadischi/eject_live_cd/eject_live_cd.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- eject_live_cd.c 15 Apr 2007 11:46:12 -0000 1.6
+++ eject_live_cd.c 17 Apr 2007 15:25:09 -0000 1.7
@@ -133,7 +133,7 @@
minor = atoi(devName + 2);
} else if (devName[0] == 's' && devName[1] == 'g') {
type = S_IFBLK;
- major = 21;
+ major = 11;
minor = atoi(devName + 2);
} else if (!strncmp(devName, "loop", 4)) {
type = S_IFBLK;
@@ -493,7 +493,7 @@
int livecd;
- if ((livecd = setupCdrom(location))<0) {
+ if (livecd = setupCdrom(location)) {
umount(location);
worked = EjectCdrom();
More information about the fedora-extras-commits
mailing list