diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-29 23:45:07 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-29 23:45:07 +0000 |
commit | 839b294201a0f356f54a6898a04b8b03cb69ed92 (patch) | |
tree | 894bfc971ffdf3c40a097aad630ed9c8a9ed5943 | |
parent | efc1575ecd6c005883f5e4bb292a6a33a4c17b2a (diff) | |
download | cygnal-839b294201a0f356f54a6898a04b8b03cb69ed92.tar.gz cygnal-839b294201a0f356f54a6898a04b8b03cb69ed92.tar.bz2 cygnal-839b294201a0f356f54a6898a04b8b03cb69ed92.zip |
* uinfo.cc (cygheap_user::test_uid): Use standard issetuid test.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/uinfo.cc | 2 |
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; } |