Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2023 16:41:22 GMT
From:      Fernando =?utf-8?Q?Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ba7720b45c31 - main - sysutils/incron: fix dependency on hard-coded /bin/bash
Message-ID:  <202308131641.37DGfMst046954@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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:
+ 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308131641.37DGfMst046954>