Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 785448 - sys-process/incron-0.5.12_p20191114 crashes on some EVENTs
Summary: sys-process/incron-0.5.12_p20191114 crashes on some EVENTs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Deutschmann (RETIRED)
URL: https://github.com/ar-/incron/issues/25
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-04-24 20:25 UTC by Christophe PEREZ
Modified: 2021-04-25 01:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch (bug.patch,1.58 KB, patch)
2021-04-24 20:25 UTC, Christophe PEREZ
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe PEREZ 2021-04-24 20:25:42 UTC
Created attachment 702261 [details, diff]
Patch

sys-process/incron-0.5.12_p20191114 crashes on some EVENTs

For example, in incrontab, I have :
/backup/chris/drive/Identite/JD IN_CREATE,IN_MOVED_TO   /usr/local/perso/setfacl_custom.sh $@/$#
If I create a dir somewhere, then move it in /backup/chris/drive/Identite/JD, incron crashes.

And I'm not alone : https://github.com/ar-/incron/issues/25
There, somebody suggested a patch (attached) which works for me
Comment 1 Larry the Git Cow gentoo-dev 2021-04-25 01:01:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=388a0ec1751688351781ddfd6175bc4e902356d1

commit 388a0ec1751688351781ddfd6175bc4e902356d1
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2021-04-25 01:00:45 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-04-25 01:01:30 +0000

    sys-process/incron: Fix crash when accessing path of..
    
    ...created/moved dir in watched directory.
    
    Closes: https://bugs.gentoo.org/785448
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 .../incron/files/incron-0.5.12-issue25.patch       | 40 ++++++++++++++++++++++
 ...14.ebuild => incron-0.5.12_p20191114-r1.ebuild} |  7 ++--
 2 files changed, 45 insertions(+), 2 deletions(-)