ports/sysutils/incron/files/patch-usertable.cpp
Trenton Schulz ba7720b45c 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)
2023-08-13 18:41:05 +02:00

11 lines
297 B
C++

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