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