OSDN Git Service

* uinfo.cc (cygheap_user::test_uid): Use standard issetuid test.
authorcgf <cgf>
Sat, 29 Jun 2002 23:45:07 +0000 (23:45 +0000)
committercgf <cgf>
Sat, 29 Jun 2002 23:45:07 +0000 (23:45 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/uinfo.cc

index 87ac1a3..09e6a27 100644 (file)
@@ -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.
index 2b506bd..cd39097 100644 (file)
@@ -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;
 }