|
Lines 1086-1099
do_setup_env(Session *s, const char *she
Link Here
|
| 1086 |
child_set_env(&env, &envsize, "TMPDIR", cray_tmpdir); |
1086 |
child_set_env(&env, &envsize, "TMPDIR", cray_tmpdir); |
| 1087 |
#endif /* _UNICOS */ |
1087 |
#endif /* _UNICOS */ |
| 1088 |
|
1088 |
|
|
|
1089 |
/* |
| 1090 |
* Since we clear KRB5CCNAME at startup, if it's set now then it |
| 1091 |
* must have been set by a native authentication method (eg AIX or |
| 1092 |
* SIA), so copy it to the child. |
| 1093 |
*/ |
| 1094 |
{ |
| 1095 |
char *cp; |
| 1096 |
|
| 1097 |
if ((cp = getenv("KRB5CCNAME")) != NULL) |
| 1098 |
child_set_env(&env, &envsize, "KRB5CCNAME", cp); |
| 1099 |
} |
| 1100 |
|
| 1089 |
#ifdef _AIX |
1101 |
#ifdef _AIX |
| 1090 |
{ |
1102 |
{ |
| 1091 |
char *cp; |
1103 |
char *cp; |
| 1092 |
|
1104 |
|
| 1093 |
if ((cp = getenv("AUTHSTATE")) != NULL) |
1105 |
if ((cp = getenv("AUTHSTATE")) != NULL) |
| 1094 |
child_set_env(&env, &envsize, "AUTHSTATE", cp); |
1106 |
child_set_env(&env, &envsize, "AUTHSTATE", cp); |
| 1095 |
if ((cp = getenv("KRB5CCNAME")) != NULL) |
|
|
| 1096 |
child_set_env(&env, &envsize, "KRB5CCNAME", cp); |
| 1097 |
read_environment_file(&env, &envsize, "/etc/environment"); |
1107 |
read_environment_file(&env, &envsize, "/etc/environment"); |
| 1098 |
} |
1108 |
} |
| 1099 |
#endif |
1109 |
#endif |