MantisBT - General public affairs
View Issue Details
0000758General public affairs(No Category)public2015-10-17 23:162015-10-18 11:34
stclem 
 
normalmajoralways
newopen 
nonenone 
GNU/LinuxLinux2.6
0000758: IN_DELETE_SELF not applicable for files
The command on a file watch with mask value "IN_DELETE_SELF" is not executed.
The two files 'foo' and 'bar' are touched in tmp. incron is setup so that if 'foo' is deleted 'bar' is to be deleted as well.

incron table:
/tmp/foo IN_DELETE_SELF rm -rf /tmp/bar

Test:
touch /tmp/foo
touch /tmp/bar
incrontab -d
rm /tmp/foo
An incron table with the following entry works as expected:
/tmp/foo IN_MODIFY rm -rf /tmp/bar

Test:
touch /tmp/foo
touch /tmp/bar
incrontab -d
echo "foo" >> /tmp/foo
No tags attached.
Issue History
2015-10-17 23:16stclemNew Issue
2015-10-18 11:34stclemNote Added: 0000798

Notes
(0000798)
stclem   
2015-10-18 11:34   
And it seems neither work with watched and deleted directories ...