Further cleanup getpwuid usage - try it first (unless completely disabled), and then silently failover to try other methods.
Этот коммит содержится в:
родитель
ecbedee8bb
Коммит
9f43db7303
@ -1557,15 +1557,10 @@ static int setup_shell(orte_plm_rsh_shell_t *rshell,
|
|||||||
struct passwd *p;
|
struct passwd *p;
|
||||||
|
|
||||||
p = getpwuid(getuid());
|
p = getpwuid(getuid());
|
||||||
if( NULL == p ) {
|
if( NULL != p ) {
|
||||||
/* This user is unknown to the system. Therefore, there is no reason we
|
param = p->pw_shell;
|
||||||
* spawn whatsoever in his name. Give up with a HUGE error message.
|
local_shell = find_shell(p->pw_shell);
|
||||||
*/
|
|
||||||
orte_show_help( "help-plm-rsh.txt", "unknown-user", true, (int)getuid() );
|
|
||||||
return ORTE_ERR_FATAL;
|
|
||||||
}
|
}
|
||||||
param = p->pw_shell;
|
|
||||||
local_shell = find_shell(p->pw_shell);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user