[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#1380: Bug in kscd(kdemultimedia-1.1)
From:       Erik Moe <ehm () concentric ! net>
Date:       1999-05-15 22:38:44
[Download RAW message or body]

Package: kdemultimedia
Version: 1.1

I am running KDE-1.1 on FreeBSD-3.1 RELEASE.  When I try to run kscd I
get the following message and a core dump:

	As root, please run

	chmod 666 /dev/rmcd0c

	to give yourself permission to access the CD-ROM device.
	Segmentation fault - core dumped

I discovered that the "wm_open" routine in plat_freebsd.c was returning
the wrong status code on failure.  The "kscd" defaults to opening
/dev/rmcd0c.  I have a SCSI CD-ROM (/dev/rcd0c) not a Mitsumi
(dev/rmcd0c).  When wm_open tries to open the device it fails and
returns a status that the drive is open, but there is no disk in the
drive.  By modifying the return code I was able to keep kscd from
crashing, then configure the correct CD-ROM device.


--- plat_freebsd.c      Sat Oct 10 18:10:44 1998
+++ plat_freebsd.c.new  Sat May 15 16:43:51 1999
@@ -517,8 +517,8 @@
                        }
                }

-               /* No CD in drive. */
-               return (1);
+               /* CD device couldn't be opened. */
+               return (-1);
        }

        if (warned)


Erik Moe
ehm@concentric.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic