Skip to content

Commit dd05f08

Browse files
author
rhc54
authored
Merge pull request #1968 from rhc54/topic/rsh
Further cleanup getpwuid usage - try it first (unless completely disa…
2 parents 3126ff7 + 9f43db7 commit dd05f08

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)