* security.cc (set_security_attribute): Call getegid32() instead of
getegid(). * include/cygwin/grp.h: Declare getegid32().
This commit is contained in:
parent
5719640581
commit
7ea70e9970
|
@ -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>
|
||||
|
||||
Change internal gid datatype from __gid16_t to __gid32_t
|
||||
|
|
|
@ -38,6 +38,7 @@ struct __group32
|
|||
struct __group32 * getgrgid32 (__gid32_t gid);
|
||||
struct __group32 * getgrnam32 (const char *name);
|
||||
__gid32_t getgid32 ();
|
||||
__gid32_t getegid32 ();
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -1612,7 +1612,7 @@ set_security_attribute (int attribute, PSECURITY_ATTRIBUTES psa,
|
|||
psa->lpSecurityDescriptor = sd_buf;
|
||||
InitializeSecurityDescriptor ((PSECURITY_DESCRIPTOR)sd_buf,
|
||||
SECURITY_DESCRIPTOR_REVISION);
|
||||
psa->lpSecurityDescriptor = alloc_sd (geteuid (), getegid (),
|
||||
psa->lpSecurityDescriptor = alloc_sd (geteuid (), getegid32 (),
|
||||
cygheap->user.logsrv (),
|
||||
attribute, (PSECURITY_DESCRIPTOR)sd_buf,
|
||||
&sd_buf_size);
|
||||
|
|
Loading…
Reference in New Issue