aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-29 03:14:12 +0000
committerChristopher Faylor <me@cgf.cx>2002-06-29 03:14:12 +0000
commite97962b92a9be22101b72f840b306b6aca5056ea (patch)
tree5d0a29dcb88a44c6dd26d48fc8abc9bfc1a10bc8
parent094d51931173d399d5719411554e1c61af500bfe (diff)
downloadnewlib-e97962b92a9be22101b72f840b306b6aca5056ea.zip
newlib-e97962b92a9be22101b72f840b306b6aca5056ea.tar.gz
newlib-e97962b92a9be22101b72f840b306b6aca5056ea.tar.bz2
* uinfo.cc (cygheap_user::env_logsrv): Return "almost_null" in case where no
domain or username is "SYSTEM".
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/uinfo.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 0152f46..983b961 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
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.
(cygheap_user::logsrv): New method.
(cygheap_user::winname): Ditto.
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index 5326ce4..9fc336d 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);