NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/49577: fts(3) is not robust in the face of errors



>Number:         49577
>Category:       lib
>Synopsis:       fts(3) is not robust in the face of errors
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 15 23:10:00 +0000 2015
>Originator:     David A. Holland
>Release:        NetBSD 7.99.4 (20150115)
>Organization:
>Environment:
System: n/a
Architecture: all
Machine: all
>Description:

fts(3) is not robust in the face of errors. If it gets a directory
read error while scanning, it discards the error and generates an
empty listing instead.

See PR 38265 for an example -- the issue there was that fetching the
root device vnodes failed, so reading /kern failed; the result was
that the error got swallowed and ls printed nothing.

>How-To-Repeat:

Code reading.

>Fix:
hack hack hack



Home | Main Index | Thread Index | Old Index