]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: remove `fdspec' from the hash table before changing its key
authorGiuseppe Scrivano <gscrivano@gnu.org>
Tue, 29 Dec 2009 13:59:24 +0000 (14:59 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 29 Dec 2009 16:01:01 +0000 (17:01 +0100)
commit07f15147eb72e9c60686068ddea9c6c5b1ac62e3
treecc819fc5e6f28385dc4a7f7308359e53aab4ec67
parented86ca7c5e4e67b59ce5cb592fef075765c7893a
tail: remove `fdspec' from the hash table before changing its key

* src/tail.c (tail_forever_inotify): Avoid modifying fdspec->wd while
it is in the wd_to_name hash table.  Once it is removed, it can be
added using the new `wd' as key for the hash table.  This fixes the
abort-inducing bug reported by Rob Wortman in
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/19372
src/tail.c