diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-11-26 12:04:16 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-11-26 12:04:16 +0000 |
commit | 8963cf1e58f763ea499d9918b3438d5f25ff5ba3 (patch) | |
tree | da609743106f353d999225b612972f239d60d7d2 /source3/nsswitch/wb_common.c | |
parent | 65643516d760c4e61ba6f4406f442f7e9bd10f2f (diff) | |
download | samba-8963cf1e58f763ea499d9918b3438d5f25ff5ba3.tar.gz samba-8963cf1e58f763ea499d9918b3438d5f25ff5ba3.tar.bz2 samba-8963cf1e58f763ea499d9918b3438d5f25ff5ba3.zip |
After consultation with tpot, remove the 'winbind_domain' environment
variable hack, the feild on the pipe, and the server-side.
It only controlled some enum operations in any case.
This is to try and have less 'magic' environment variables.
Andrew Bartlett
(This used to be commit e4be82e4e2c7cdf15f3e20f73fe9f281f6384423)
Diffstat (limited to 'source3/nsswitch/wb_common.c')
-rw-r--r-- | source3/nsswitch/wb_common.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/nsswitch/wb_common.c b/source3/nsswitch/wb_common.c index 51792f63fe..e0cae0abe3 100644 --- a/source3/nsswitch/wb_common.c +++ b/source3/nsswitch/wb_common.c @@ -45,25 +45,11 @@ void free_response(struct winbindd_response *response) void init_request(struct winbindd_request *request, int request_type) { - static char *domain_env; - static BOOL initialised; - request->length = sizeof(struct winbindd_request); request->cmd = (enum winbindd_cmd)request_type; request->pid = getpid(); - request->domain[0] = '\0'; - - if (!initialised) { - initialised = True; - domain_env = getenv(WINBINDD_DOMAIN_ENV); - } - if (domain_env) { - strncpy(request->domain, domain_env, - sizeof(request->domain) - 1); - request->domain[sizeof(request->domain) - 1] = '\0'; - } } /* Initialise a response structure */ |