[BusyBox 0003514]: runsvdir always warns it cannot read the directory

bugs at busybox.net bugs at busybox.net
Thu May 29 11:58:15 PDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=3514 
====================================================================== 
Reported By:                mnemoc
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   3514
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             05-29-2008 11:58 PDT
Last Modified:              05-29-2008 11:58 PDT
====================================================================== 
Summary:                    runsvdir always warns it cannot read the directory
Description: 
the logic of runsvdir assumes just readdir() may set errno, and relies on
that to decide when to warn.

but runsv() calls vfork() which is always setting errno=2 when pid>0, so
one always gets:

runsvdir: /var/service: warning: cannot read directory /var/service

I know `runsvdir` is not guilty, but I didn't know what to do on vfork()'s
code to try to fix it
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-29-08 11:58  mnemoc         New Issue                                    
05-29-08 11:58  mnemoc         Status                   new => assigned     
05-29-08 11:58  mnemoc         Assigned To               => BusyBox         
05-29-08 11:58  mnemoc         File Added: pkg_busybox.patch                    
======================================================================



More information about the busybox-cvs mailing list