Commit 47fc101f authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix to shell argument processing in services/execute.

parent 6c0fb218
......@@ -1160,8 +1160,9 @@ sub GetTicketAuxAux($$$$$$$$$)
#
# Support only sh and csh. Maybe perl later.
#
if (! ($shell eq "csh" || $shell eq "sh" ||
$shell eq "/bin/csh" || $shell eq "/bin/sh")) {
if (! (defined($shell) &&
($shell eq "csh" || $shell eq "sh" ||
$shell eq "/bin/csh" || $shell eq "/bin/sh"))) {
$response =
GeniResponse->Create(GENIRESPONSE_ERROR, undef,
"Invalid shell in execute");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment