* uinfo.cc (cygheap_user::test_uid): Use standard issetuid test.
This commit is contained in:
parent
efc1575ecd
commit
839b294201
@ -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>
|
2002-06-29 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* autoload.cc (NetGetDCName): Change to make this an optional load
|
* autoload.cc (NetGetDCName): Change to make this an optional load
|
||||||
|
@ -308,7 +308,7 @@ cygheap_user::test_uid (char *&what, const char *name, size_t namelen)
|
|||||||
{
|
{
|
||||||
if (what)
|
if (what)
|
||||||
return what;
|
return what;
|
||||||
if (orig_uid == myself->uid)
|
if (!issetuid ())
|
||||||
what = getwinenveq (name, namelen, HEAP_STR);
|
what = getwinenveq (name, namelen, HEAP_STR);
|
||||||
return what;
|
return what;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user