Skip to content

Commit 9f43db7

Browse files
author
Ralph Castain
committed
Further cleanup getpwuid usage - try it first (unless completely disabled), and then silently failover to try other methods.
1 parent ecbedee commit 9f43db7

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

orte/mca/plm/rsh/plm_rsh_module.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,15 +1557,10 @@ static int setup_shell(orte_plm_rsh_shell_t *rshell,
15571557
struct passwd *p;
15581558

15591559
p = getpwuid(getuid());
1560-
if( NULL == p ) {
1561-
/* This user is unknown to the system. Therefore, there is no reason we
1562-
* spawn whatsoever in his name. Give up with a HUGE error message.
1563-
*/
1564-
orte_show_help( "help-plm-rsh.txt", "unknown-user", true, (int)getuid() );
1565-
return ORTE_ERR_FATAL;
1560+
if( NULL != p ) {
1561+
param = p->pw_shell;
1562+
local_shell = find_shell(p->pw_shell);
15661563
}
1567-
param = p->pw_shell;
1568-
local_shell = find_shell(p->pw_shell);
15691564
}
15701565
#endif
15711566

0 commit comments

Comments
 (0)