Sync from coreutils.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 10 Jan 2006 21:31:01 +0000 (21:31 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 10 Jan 2006 21:31:01 +0000 (21:31 +0000)
commitc43d62c6f29b412d3333808be3f1f619af19e3f4
tree8f1f5f76e826fb34807059b3979d3a591810ecf1
parente48d8b47fb3eee81d341b71c3e006efe9e3433a7
Sync from coreutils.

Avoid the double-free (first in fts_read, second in fts_close) that
would occur when an `active' directory is made inaccessible (e.g.,
via chmod a-x) during a traversal.
* lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
before returning.  Reproduce this failure by
mkdir -p a/b; cd a; chmod a-x . b

* lib/sha1.c: Tweak grammar in a comment.
* m4/fpending.m4: Also include <stdio.h>, for Dragonfly.

* m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
the 2002-12-31 change.
lib/ChangeLog
lib/fts.c
lib/sha1.c
m4/ChangeLog
m4/fpending.m4
m4/memcoll.m4