* common.din (issetugid): Export.

* glob.cc (issetugid): Drop macro.
	* sec_auth.cc (issetugid): New exported function.
	* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
This commit is contained in:
Corinna Vinschen
2015-03-03 12:58:34 +00:00
parent f9f1fbe47e
commit 37e87b843f
6 changed files with 20 additions and 2 deletions

View File

@ -31,6 +31,14 @@ details. */
#include "cygserver_setpwd.h"
#include <cygwin/version.h>
/* OpenBSD 2.0 and later. */
extern "C"
int
issetugid (void)
{
return cygheap->user.issetuid () ? 1 : 0;
}
/* Starting with Windows Vista, the token returned by system functions
is a restricted token. The full admin token is linked to it and can
be fetched with NtQueryInformationToken. This function returns the original