Yet again, a new C89-incompatibility has appeared in coreutils (6.5) that
is not covered by c99-to-c89.diff. It's different from all I've reported
before.
The fix is appended.
---- Michael Deutschmann <address@hidden>
diff -durpN coreutils-6.5/lib/fts.c coreutils-6.5-fix/lib/fts.c
--- coreutils-6.5/lib/fts.c 2006-11-12 09:05:29.000000000 -0800
+++ coreutils-6.5-fix/lib/fts.c 2006-11-20 03:20:47.000000000 -0800
@@ -1645,8 +1645,9 @@ fts_safe_changedir (FTS *sp, FTSENT *p,
failure when we lack "x" access to the virtual cwd. */
if ( ! i_ring_empty (&sp->fts_fd_ring))
{
+ int parent_fd;
fd_ring_print (sp, stderr, "pre-pop");
- int parent_fd = i_ring_pop (&sp->fts_fd_ring);
+ parent_fd = i_ring_pop (&sp->fts_fd_ring);
is_dotdot = true;
if (0 <= parent_fd)
{