git: ba7720b45c31 - main - sysutils/incron: fix dependency on hard-coded /bin/bash

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Sun, 13 Aug 2023 16:41:22 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ba7720b45c318713be97c1739af97d468e5241eb

commit ba7720b45c318713be97c1739af97d468e5241eb
Author:     Trenton Schulz <trueos@norwegianrockcat.com>
AuthorDate: 2023-07-31 08:28:05 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-08-13 16:41:05 +0000

    sysutils/incron: fix dependency on hard-coded /bin/bash
    
    PR:             272800
    Reported by:    trueos@norwegianrockcat.com
    Approved by:    joh.hendriks@gmail.com (maintainer, timeout > 2 weeks)
---
 sysutils/incron/Makefile                  |  2 +-
 sysutils/incron/files/patch-usertable.cpp | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/sysutils/incron/Makefile b/sysutils/incron/Makefile
index 82a7d3537038..2967f44c7d1f 100644
--- a/sysutils/incron/Makefile
+++ b/sysutils/incron/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	incron
 DISTVERSION=	2017-11-13
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 
 MAINTAINER=	joh.hendriks@gmail.com
diff --git a/sysutils/incron/files/patch-usertable.cpp b/sysutils/incron/files/patch-usertable.cpp
new file mode 100644
index 000000000000..3aa95dfec2ee
--- /dev/null
+++ b/sysutils/incron/files/patch-usertable.cpp
@@ -0,0 +1,11 @@
+--- usertable.cpp.orig	2023-07-29 17:29:34 UTC
++++ usertable.cpp
+@@ -608,7 +608,7 @@ void UserTable::RunAsUser(std::string cmd) const
+     }
+   }
+   
+-  execlp("/bin/bash","/bin/bash", "-c", cmd.c_str(), (char *)NULL);
++  execlp("/bin/sh","/bin/sh", "-c", cmd.c_str(), (char *)NULL);
+ 
+ failed:
+