[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
coreutils-6.5: yet another C89 problem
From: |
Michael Deutschmann |
Subject: |
coreutils-6.5: yet another C89 problem |
Date: |
Mon, 20 Nov 2006 19:02:24 -0800 (PST) |
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)
{
- coreutils-6.5: yet another C89 problem,
Michael Deutschmann <=
- Re: coreutils-6.5: yet another C89 problem, Jim Meyering, 2006/11/21
- Re: coreutils-6.5: yet another C89 problem, Matthew Woehlke, 2006/11/21
- Re: coreutils-6.5: yet another C89 problem, Jim Meyering, 2006/11/21
- Re: coreutils-6.5: yet another C89 problem, Matthew Woehlke, 2006/11/21
- Re: coreutils-6.5: yet another C89 problem, Paul Eggert, 2006/11/21
- Re: coreutils-6.5: yet another C89 problem, Matthew Woehlke, 2006/11/21
- Re: coreutils-6.5: yet another C89 problem, Paul Eggert, 2006/11/22
- Message not available
- Re: coreutils-6.5: yet another C89 problem, Paul Eggert, 2006/11/22
- Re: coreutils-6.5: yet another C89 problem, Jim Meyering, 2006/11/26
- Re: coreutils-6.5: yet another C89 problem, Paul Eggert, 2006/11/27