Changeset 746 for vendor/current/source3/lib/netapi
- Timestamp:
- Nov 27, 2012, 4:56:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/lib/netapi/netapi.c
r740 r746 104 104 NET_API_STATUS status; 105 105 struct libnetapi_ctx *ctx = NULL; 106 char *krb5_cc_env = NULL;107 106 108 107 frame = talloc_stackframe(); … … 115 114 116 115 BlockSignals(True, SIGPIPE); 117 118 krb5_cc_env = getenv(KRB5_ENV_CCNAME);119 if (!krb5_cc_env || (strlen(krb5_cc_env) == 0)) {120 ctx->krb5_cc_env = talloc_strdup(frame, "MEMORY:libnetapi");121 setenv(KRB5_ENV_CCNAME, ctx->krb5_cc_env, 1);122 }123 116 124 117 if (getenv("USER")) { … … 267 260 } 268 261 262 /**************************************************************** 263 ****************************************************************/ 264 269 265 NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx) 270 266 {
Note:
See TracChangeset
for help on using the changeset viewer.