Issue when renaming directory with inotifywait
Bug #254751 reported by
Antonin Stefanutti
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
inotify-tools (Ubuntu) |
Fix Released
|
Low
|
Ryan Niebur |
Bug Description
Binary package hint: inotify-tools
I am having a problem using inotifywait (version inotify-tools 3.12-1 ubuntu 8.04.1) in the following use case:
#1 I am running inotifywait the following way:
inotifywait -mrq --format '%w%f' -e create -e moved_to /home/*/dav/
#2 Then I create a new folder in /home/user/dav/, let say /home/user/
#3 Then I rename this folder, let say to /home/user/
#4 Then I create a new file, let say /home/user/
newfile
# Actual Result: inotifywait triggers the event with the file path /home/user/
# Expected result: inotifywait should trigger the event with the file path /home/user/
To post a comment you must log in.
Confirmed in 3.12-1 in intrepid.
~$ inotifywait -mrq --format '%w%f' -e create -e moved_to tmp/
tmp/newdir
tmp/newdir2
tmp/newdir/test
tmp/newdir/test2
And here's what I typed in another console:
~/tmp$ mkdir newdir
~/tmp$ mv newdir/ newdir2
~/tmp$ touch newdir2/test
~/tmp$ touch newdir2/test2