ports/net-mgmt/resource-agents/files/patch-tools_ocf_tester.in
Jochen Neumeister 389e35199e - net-mgmt/resource-agents: Update from 2.3.5 to 4.0.1
- Changelog: https://github.com/ClusterLabs/resource-agents/blob/master/ChangeLog
- Fix shebangs

PR:		219546
Submitted by:	David Shane Holden (maintainer)
Approved by:	miwi (mentor)
Differential Revision:	https://reviews.freebsd.org/D10984
2017-06-06 16:11:48 +00:00

11 lines
349 B
Text

--- tools/ocf-tester.in.orig 2016-04-05 14:11:59 UTC
+++ tools/ocf-tester.in
@@ -216,7 +216,7 @@ lrm_test_command() {
test_permissions() {
action=meta-data
debug ${1:-"Testing permissions with uid nobody"}
- su nobody -s /bin/sh -c "$agent $action" > /dev/null
+ su -m nobody -c "$agent $action" > /dev/null
}
test_metadata() {