]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Wed, 13 Oct 2004 19:25:34 +0000 (19:25 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 13 Oct 2004 19:25:34 +0000 (19:25 +0000)
lib/ChangeLog

index 9bfb3b27938feffca0579925c3ca8c3a5d161b4a..91769e935e7203c524bfea74ac92fc3b2a03d1e5 100644 (file)
@@ -1,3 +1,13 @@
+2004-10-13  Jim Meyering  <jim@meyering.net>
+
+       * fts.c (fts_read): When about to fail (by returning NULL) due
+       to a failed fchdir or failed fts_safe_changedir call, set
+       `sp->fts_cur = p'.  Do this by removing the explicit `return NULL;'
+       statements and setting p->fts_errno so execution falls through
+       to the common-case code below.  Otherwise, after such a failure,
+       calling fts_close would attempt to free an already-freed buffer.
+       Reported by Luis Lopez Lopez in http://bugs.debian.org/276352.
+
 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
 
        Sync from gnulib.