diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-05-28 14:10:55 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-05-28 14:10:55 +0000 |
commit | 571964058165952634fce744588d588096cd1c2c (patch) | |
tree | 753fe9a6289181cd0218d36b7b57486194191bf8 /winsup/cygwin/sec_acl.cc | |
parent | f542ad4e14fae736164e354cd0f456427c82870c (diff) | |
download | cygnal-571964058165952634fce744588d588096cd1c2c.tar.gz cygnal-571964058165952634fce744588d588096cd1c2c.tar.bz2 cygnal-571964058165952634fce744588d588096cd1c2c.zip |
Change internal gid datatype from __gid16_t to __gid32_t
throughout.
* cygwin.din: Export new symbols chown32, fchown32, getegid32,
getgid32, getgrgid32, getgrnam32, getgroups32, initgroups32, lchown32,
setgid32, setegid32, getgrent32.
* grp.cc (grp32togrp16): New static function.
(getgrgid32): New function.
(getgrnam32): Ditto.
(getgrent32): Ditto.
(getgroups32): Change name of internal function from getgroups.
(getgroups32): New function.
(initgroups32): Ditto.
* syscalls.cc (chown32): Ditto.
(lchown32): Ditto.
(fchown32): Ditto.
(setegid32): Ditto.
(setgid32): Ditto.
* uinfo.cc (getgid32): Ditto.
(getegid32): Ditto.
* include/cygwin/grp.h: Remove declaration of getgrgid() and getgrnam().
Declare getgrgid32() and getgrnam32() instead. Declare getgid32().
Diffstat (limited to 'winsup/cygwin/sec_acl.cc')
-rw-r--r-- | winsup/cygwin/sec_acl.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index 0ef423f7b..47f1cb426 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -107,7 +107,7 @@ setacl (const char *file, int nentries, __aclent16_t *aclbufp) cygsid sid; struct passwd *pw; - struct __group16 *gr; + struct __group32 *gr; int pos; if (!InitializeAcl (acl, 3072, ACL_REVISION)) @@ -172,7 +172,7 @@ setacl (const char *file, int nentries, __aclent16_t *aclbufp) break; case GROUP: case DEF_GROUP: - if (!(gr = getgrgid (aclbufp[i].a_id)) + if (!(gr = getgrgid32 (aclbufp[i].a_id)) || !sid.getfromgr (gr) || !add_access_allowed_ace (acl, ace_off++, allow, sid, acl_len, inheritance)) @@ -256,7 +256,7 @@ getacl (const char *file, DWORD attr, int nentries, __aclent16_t *aclbufp) PSID group_sid; BOOL dummy; __uid16_t uid; - __gid16_t gid; + __gid32_t gid; if (!GetSecurityDescriptorOwner (psd, &owner_sid, &dummy)) { @@ -424,7 +424,7 @@ acl_access (const char *path, int flags) cygsid owner; cygsid group; struct passwd *pw; - struct __group16 *gr = NULL; + struct __group32 *gr = NULL; if ((pw = getpwuid (acls[i].a_id)) != NULL && owner.getfrompw (pw)) @@ -994,7 +994,7 @@ aclfromtext (char *acltextp, int *) c += 5; if (isalpha (*c)) { - struct __group16 *gr = getgrnam (c); + struct __group32 *gr = getgrnam32 (c); if (!gr) { set_errno (EINVAL); |