diff options
author | Trenton Schulz <trueos@norwegianrockcat.com> | 2023-07-31 10:28:05 +0200 |
---|---|---|
committer | Fernando ApesteguĂa <fernape@FreeBSD.org> | 2023-08-13 18:41:05 +0200 |
commit | ba7720b45c318713be97c1739af97d468e5241eb (patch) | |
tree | 2959499bc07f93097b247dbd7db2a64e4e87a6a8 /sysutils/incron/files/patch-usertable.cpp | |
parent | graphics/asciinema-agg: Update to 1.4.2 (diff) |
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)
Diffstat (limited to 'sysutils/incron/files/patch-usertable.cpp')
-rw-r--r-- | sysutils/incron/files/patch-usertable.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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: + |