* uinfo.cc (cygheap_user::test_uid): Use standard issetuid test.

This commit is contained in:
Christopher Faylor 2002-06-29 23:45:07 +00:00
parent efc1575ecd
commit 839b294201
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View 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;
}