File bug-961392_pacemaker-crm_shadow-sh-noprofile.patch of Package pacemaker.3577
commit b4f06bdae68ba0cd264afdca888876987fefe3e2
Author: Gao,Yan <ygao@suse.com>
Date: Tue Jan 12 12:18:21 2016 +0100
Fix: crm_shadow: Do not invoke shells with --noprofile option other than bash
Previously, shells that don't support --noprofile option failed to be
invoked. So far as I've seen, only bash supports --noprofile option.
diff --git a/tools/cib_shadow.c b/tools/cib_shadow.c
index 000b0b0..845486c 100644
--- a/tools/cib_shadow.c
+++ b/tools/cib_shadow.c
@@ -78,7 +78,7 @@ shadow_setup(char *name, gboolean do_switch)
if (strstr(shell, "bash")) {
execl(shell, shell, "--norc", "--noprofile", NULL);
} else {
- execl(shell, shell, "--noprofile", NULL);
+ execl(shell, shell, NULL);
}
} else if (do_switch) {