From e97962b92a9be22101b72f840b306b6aca5056ea Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 29 Jun 2002 03:14:12 +0000 Subject: * uinfo.cc (cygheap_user::env_logsrv): Return "almost_null" in case where no domain or username is "SYSTEM". --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/uinfo.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'winsup') diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0152f4691..983b961f1 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-06-28 Christopher Faylor + + * uinfo.cc (cygheap_user::env_logsrv): Return "almost_null" in case + where no domain or username is "SYSTEM". + 2002-06-28 Christopher Faylor * cygheap.h (cygheap_user): Reorg to accommodate environment caching. diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 5326ce475..9fc336d73 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -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); -- cgit v1.2.3