* uinfo.cc (cygheap_user::env_logsrv): Return "almost_null" in case where no

domain or username is "SYSTEM".
This commit is contained in:
Christopher Faylor 2002-06-29 03:14:12 +00:00
parent 094d519311
commit e97962b92a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-06-28 Christopher Faylor <cgf@redhat.com>
* uinfo.cc (cygheap_user::env_logsrv): Return "almost_null" in case
where no domain or username is "SYSTEM".
2002-06-28 Christopher Faylor <cgf@redhat.com>
* cygheap.h (cygheap_user): Reorg to accommodate environment caching.

View File

@ -320,7 +320,7 @@ cygheap_user::env_logsrv (const char *name, size_t namelen)
return plogsrv;
if (!domain () || strcasematch (winname (), "SYSTEM"))
return NULL;
return almost_null;
char logsrv[INTERNET_MAX_HOST_NAME_LENGTH + 3];
cfree_and_set (plogsrv, almost_null);