Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 785448

Summary: sys-process/incron-0.5.12_p20191114 crashes on some EVENTs
Product: Gentoo Linux Reporter: Christophe PEREZ <chris>
Component: Current packagesAssignee: Thomas Deutschmann (RETIRED) <whissi>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/ar-/incron/issues/25
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch

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(-)