Support for password structures without a specified shell or a NULL/empty shell.
This commit was SVN r20853.
Этот коммит содержится в:
родитель
8bb6bb97a4
Коммит
faca1aeeb9
@ -1486,7 +1486,17 @@ static orte_plm_rsh_shell_t find_shell(char *shell)
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
char *sh_name = NULL;
|
char *sh_name = NULL;
|
||||||
|
|
||||||
|
if( (NULL == shell) || (strlen(shell) == 1) ) {
|
||||||
|
/* Malformed shell */
|
||||||
|
return ORTE_PLM_RSH_SHELL_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
sh_name = rindex(shell, '/');
|
sh_name = rindex(shell, '/');
|
||||||
|
if( NULL == sh_name ) {
|
||||||
|
/* Malformed shell */
|
||||||
|
return ORTE_PLM_RSH_SHELL_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
/* skip the '/' */
|
/* skip the '/' */
|
||||||
++sh_name;
|
++sh_name;
|
||||||
for (i = 0; i < (int)(sizeof (orte_plm_rsh_shell_name) /
|
for (i = 0; i < (int)(sizeof (orte_plm_rsh_shell_name) /
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user