Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-29 07:14:12 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-29 07:14:12 +0400
commite97962b92a9be22101b72f840b306b6aca5056ea (patch)
tree5d0a29dcb88a44c6dd26d48fc8abc9bfc1a10bc8
parent094d51931173d399d5719411554e1c61af500bfe (diff)
* 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 0152f4691..983b961f1 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 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);