summaryrefslogtreecommitdiff
path: root/tests/tail-2/inotify-hash-abuse
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivano@gnu.org>2009-12-29 14:59:24 +0100
committerJim Meyering <meyering@redhat.com>2009-12-29 17:01:01 +0100
commit07f15147eb72e9c60686068ddea9c6c5b1ac62e3 (patch)
treecc819fc5e6f28385dc4a7f7308359e53aab4ec67 /tests/tail-2/inotify-hash-abuse
parented86ca7c5e4e67b59ce5cb592fef075765c7893a (diff)
downloadcoreutils-07f15147eb72e9c60686068ddea9c6c5b1ac62e3.tar.xz
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
Diffstat (limited to 'tests/tail-2/inotify-hash-abuse')
0 files changed, 0 insertions, 0 deletions