From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 14 Sep 2004 16:50:57 +0000 Subject: Re: udev segfaults with bad permissions file Message-Id: <20040914165057.GA29009@kroah.com> List-Id: References: <200409141453.12856.> In-Reply-To: <200409141453.12856.> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Sep 14, 2004 at 04:13:25PM +0200, Kay Sievers wrote: > On Tue, Sep 14, 2004 at 02:53:12PM +0200, Loleslaw wrote: > > Hi, > > Since I started using udev-031 on my gentoo udevstart would just segfault > > (udev-030 worked). As it turned out I had a file in /etc/udev/permissions.d > > with a single space in one line. I've cleaned the file and it works all > > right, but I thought you could be interested. > > I've traced it to function namedev_init_permissions in namedev_parse.c > > I don't know C well enough to suggest a patch. > > Yeah, thanks for pointing that out. It only happens if the file ends with > whitespace-only lines. Here is a fix and a test for udev-test.pl to > cover that case. Applied, thanks. greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel