ports/net-mgmt/resource-agents/files/patch-tools_ocf_tester.in
Kurt Jaeger 1a417af497 New port: net-mgmt/resource-agents
These resource agents are used by two cluster resource management
implementations:

- Pacemaker
- rgmanager

More information about OCF resource agents is available in the OCF Resource
Agent Developer's guide, in the doc/dev-guides subdirectory.

WWW: http://www.linux-ha.org/wiki/Resource_agents

PR:		209005
Submitted by:	David Shane Holden <dpejesh@yahoo.com>
2016-04-26 03:33:13 +00:00

11 lines
344 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 $agent $action > /dev/null
+ su -m nobody -c "$agent $action" > /dev/null
}
test_metadata() {