[BusyBox 0000864]: mdev fails to detect directories on sysfs

bugs at busybox.net bugs at busybox.net
Thu May 4 08:02:56 UTC 2006


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=864 
====================================================================== 
Reported By:                admie
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   864
Category:                   Documentation
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             05-04-2006 01:02 PDT
Last Modified:              05-04-2006 01:02 PDT
====================================================================== 
Summary:                    mdev fails to detect directories on sysfs
Description: 
mdev uses struct dirent->d_type to distinguish directories from files.
As far as I see, this field is not covered by any man pages or the like,
besides that man pages warning not to use not mensioned fields.
2.6.x seem to just zero d_type, so I patched mdev.c
to use lstat() -- it works for me.
Patch included, against busybox-1.1.1.

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-04-06 01:02  admie          New Issue                                    
05-04-06 01:02  admie          Status                   new => assigned     
05-04-06 01:02  admie          Assigned To               => BusyBox         
05-04-06 01:02  admie          File Added: mdev.patch                       
======================================================================




More information about the busybox-cvs mailing list