From 839b294201a0f356f54a6898a04b8b03cb69ed92 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 29 Jun 2002 23:45:07 +0000 Subject: [PATCH] * uinfo.cc (cygheap_user::test_uid): Use standard issetuid test. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/uinfo.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 87ac1a3fe..09e6a2721 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2002-06-29 Christopher Faylor + + * uinfo.cc (cygheap_user::test_uid): Use standard issetuid test. + 2002-06-29 Christopher Faylor * autoload.cc (NetGetDCName): Change to make this an optional load 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; }