hald caught in infinite loop while scanning directory

Martin Pitt martin at piware.de
Wed Oct 26 00:30:32 PDT 2005


Hi again!

Martin Pitt [2005-10-24 18:40 +0200]:
> > > However, I never saw hald lock up on traversing the current directory
> > > "." at this point. Maybe this is file system specific?
> > 
> > This is pretty strange, we have this snippet
> > 
> > 		} else if (g_file_test (full_path, (G_FILE_TEST_IS_DIR)) 
> > 			   && strcmp (filename, ".") != 0
> > 			   && strcmp (filename, "..") != 0) {
> > 
> > in hald/device_info.c to guard against this. 
> 
> I agree that it is strange, and I can't reproduce it either. Maybe it
> is a quirk of a specific file system (the Ubuntu bug reporter did not
> reply yet).

An update: The reporter uses plain boring ext2, and he said that he
wanted to debug this soon.

Thanks!

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org


More information about the hal mailing list