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-30 03:45:07 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-30 03:45:07 +0400
commit839b294201a0f356f54a6898a04b8b03cb69ed92 (patch)
tree894bfc971ffdf3c40a097aad630ed9c8a9ed5943
parentefc1575ecd6c005883f5e4bb292a6a33a4c17b2a (diff)
* uinfo.cc (cygheap_user::test_uid): Use standard issetuid test.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/uinfo.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 87ac1a3fe..09e6a2721 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2002-06-29 Christopher Faylor <cgf@redhat.com>
+ * uinfo.cc (cygheap_user::test_uid): Use standard issetuid test.
+
+2002-06-29 Christopher Faylor <cgf@redhat.com>
+
* autoload.cc (NetGetDCName): Change to make this an optional load
function.
* cygheap.h (cygheap_user::logsrv): Return NULL when operation fails.
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index 2b506bde9..cd39097d5 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -308,7 +308,7 @@ cygheap_user::test_uid (char *&what, const char *name, size_t namelen)
{
if (what)
return what;
- if (orig_uid == myself->uid)
+ if (!issetuid ())
what = getwinenveq (name, namelen, HEAP_STR);
return what;
}