* security.cc (set_security_attribute): Call getegid32() instead of

getegid().
	* include/cygwin/grp.h: Declare getegid32().
This commit is contained in:
Corinna Vinschen 2002-05-28 14:58:13 +00:00
parent 5719640581
commit 7ea70e9970
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-05-28 Corinna Vinschen <corinna@vinschen.de>
* security.cc (set_security_attribute): Call getegid32() instead of
getegid().
* include/cygwin/grp.h: Declare getegid32().
2002-05-28 Corinna Vinschen <corinna@vinschen.de> 2002-05-28 Corinna Vinschen <corinna@vinschen.de>
Change internal gid datatype from __gid16_t to __gid32_t Change internal gid datatype from __gid16_t to __gid32_t

View File

@ -38,6 +38,7 @@ struct __group32
struct __group32 * getgrgid32 (__gid32_t gid); struct __group32 * getgrgid32 (__gid32_t gid);
struct __group32 * getgrnam32 (const char *name); struct __group32 * getgrnam32 (const char *name);
__gid32_t getgid32 (); __gid32_t getgid32 ();
__gid32_t getegid32 ();
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -1612,7 +1612,7 @@ set_security_attribute (int attribute, PSECURITY_ATTRIBUTES psa,
psa->lpSecurityDescriptor = sd_buf; psa->lpSecurityDescriptor = sd_buf;
InitializeSecurityDescriptor ((PSECURITY_DESCRIPTOR)sd_buf, InitializeSecurityDescriptor ((PSECURITY_DESCRIPTOR)sd_buf,
SECURITY_DESCRIPTOR_REVISION); SECURITY_DESCRIPTOR_REVISION);
psa->lpSecurityDescriptor = alloc_sd (geteuid (), getegid (), psa->lpSecurityDescriptor = alloc_sd (geteuid (), getegid32 (),
cygheap->user.logsrv (), cygheap->user.logsrv (),
attribute, (PSECURITY_DESCRIPTOR)sd_buf, attribute, (PSECURITY_DESCRIPTOR)sd_buf,
&sd_buf_size); &sd_buf_size);