inotify: Watch out for files moved to/from watched dirs
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 13 Nov 2012 12:50:03 +0000 (13:50 +0100)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 23 Nov 2012 12:45:10 +0000 (13:45 +0100)
commitdb4b9c326ebc4dda44a72b6832382301920925be
treec14d931b6128abe708e6e1cfa331c64f7d0acb41
parentdb2a311c9f4c77fec8f7baca6cd075ebf4806832
inotify: Watch out for files moved to/from watched dirs

When we do not watch watch for IN_MOVED_TO or IN_MOVED_FROM we can
easily inconsistent. The user creates a file and moves it then
from the watched directory. We wouldn't see this change and therefore
keep the configuration. That is a rather anoying behavoir
for the policy plugin.
src/inotify.c