* 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

@ -1,3 +1,10 @@
2015-03-03 Corinna Vinschen <corinna@vinschen.de>
* 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.
2015-03-02 Corinna Vinschen <corinna@vinschen.de> 2015-03-02 Corinna Vinschen <corinna@vinschen.de>
* security.cc (get_attribute_from_acl): Don't spill Everyone permissions * security.cc (get_attribute_from_acl): Don't spill Everyone permissions

View File

@ -639,6 +639,7 @@ isnan NOSIGFE
isnanf NOSIGFE isnanf NOSIGFE
isprint NOSIGFE isprint NOSIGFE
ispunct NOSIGFE ispunct NOSIGFE
issetugid NOSIGFE
isspace NOSIGFE isspace NOSIGFE
isupper NOSIGFE isupper NOSIGFE
iswalnum NOSIGFE iswalnum NOSIGFE

View File

@ -103,7 +103,6 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/glob.c,v 1.28 2010/05/12 17:44:00 gordon Ex
#define getpwuid(uid) getpwuid32 (uid) #define getpwuid(uid) getpwuid32 (uid)
#define getuid() getuid32 () #define getuid() getuid32 ()
#define issetugid() (cygheap->user.issetuid ())
#define CCHAR(c) (ignore_case_with_glob ? towlower (CHAR (c)) : CHAR (c)) #define CCHAR(c) (ignore_case_with_glob ? towlower (CHAR (c)) : CHAR (c))
#define Cchar(c) (ignore_case_with_glob ? towlower (c) : (c)) #define Cchar(c) (ignore_case_with_glob ? towlower (c) : (c))

View File

@ -468,12 +468,13 @@ details. */
284: Export sockatmark. 284: Export sockatmark.
285: Export wcstold. 285: Export wcstold.
285: Export cabsl, cimagl, creall, finitel, hypotl, sqrtl. 285: Export cabsl, cimagl, creall, finitel, hypotl, sqrtl.
287: Export issetugid.
*/ */
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0 #define CYGWIN_VERSION_API_MAJOR 0
#define CYGWIN_VERSION_API_MINOR 286 #define CYGWIN_VERSION_API_MINOR 287
/* There is also a compatibity version number associated with the /* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible shared memory regions. It is incremented when incompatible

View File

@ -3,6 +3,8 @@ What's new:
- New APIs: cabsl, cimagl, creall, finitel, hypotl, sqrtl. - New APIs: cabsl, cimagl, creall, finitel, hypotl, sqrtl.
- New API: issetugid.
What changed: What changed:
------------- -------------

View File

@ -31,6 +31,14 @@ details. */
#include "cygserver_setpwd.h" #include "cygserver_setpwd.h"
#include <cygwin/version.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 /* Starting with Windows Vista, the token returned by system functions
is a restricted token. The full admin token is linked to it and can is a restricted token. The full admin token is linked to it and can
be fetched with NtQueryInformationToken. This function returns the original be fetched with NtQueryInformationToken. This function returns the original