fts: fts_open: do not let an empty string cause immediate failure
authorJim Meyering <meyering@redhat.com>
Tue, 1 Dec 2009 11:06:34 +0000 (12:06 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 1 Dec 2009 13:09:25 +0000 (14:09 +0100)
commitcdfe647f8d29540cdfe90cef0fa568c5d2fd4481
tree09c66ac1b3343023a7020b6abb6c61ca72c7caba
parent52f2ca7c62445ecc1dadbba8a709421e0290f7d2
fts: fts_open: do not let an empty string cause immediate failure

This is required in support of GNU rm, for which the command
"rm A '' B" must process and remove both A and B, in spite of
the empty string argument.
* lib/fts.c (fts_open): Do not let the presence of an empty string
cause fts_open to fail immediately.  Most fts-using tools must be
able to process all arguments, in order, and can be expected to
diagnose such arguments themselves.
Also, move declaration of local, "len", "down" to initialization.
ChangeLog
lib/fts.c