]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r262872: fts: Don't abort if an empty pathname is given.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 20 Aug 2014 20:12:05 +0000 (20:12 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 20 Aug 2014 20:12:05 +0000 (20:12 +0000)
commit20982870a7b934d920b46c81daad1d34fed4fcf9
tree1725107ccea2d6e53cd9801a603c0a008d69bbef
parent22a7fd988974d09f3ad80fbb4609dd7c2ca35b59
MFC r262872: fts: Don't abort if an empty pathname is given.

Make fts_open(3) treat an empty pathname like any other pathname that cannot
be lstatted because of [ENOENT].

It is rather confusing if  rm -rf file1 "" file2  does not remove file1 and
file2.

PR: 187264

git-svn-id: svn://svn.freebsd.org/base/stable/9@270245 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/fts.c