Difference between
modified post e2dc6fef by Anonymous on Wed 8th Oct 2025 11:03
original post ad6ff97 by Anonymous on Sat 27th Sep 2025 17:05
Download diff
Show
old version |
new version |
both versions
| 1 | + | # https://gitforwindows.org/building-msys2-runtime.html | |
| 1 | 2 | diff --git a/winsup/cygwin/fhandler/disk_file.cc b/winsup/cygwin/fhandler/disk_file.cc | |
| 2 | 3 | index d54d3747e..92a54d9db 100644 | |
| 3 | 4 | --- a/winsup/cygwin/fhandler/disk_file.cc | |
| 4 | 5 | +++ b/winsup/cygwin/fhandler/disk_file.cc | |
| 5 | 6 | @@ -239,8 +239,12 @@ fhandler_base::fstat_by_nfs_ea (struct stat *buf) | |
| 6 | 7 | domain = cygheap->dom.get_rfc2307_domain (); | |
| 7 | 8 | if ((ldap_open = (cldap.open (domain) == NO_ERROR))) | |
| 8 | 9 | map_uid = cldap.remap_uid (nfs_attr->uid); | |
| 9 | 10 | - if (map_uid == ILLEGAL_UID) | |
| 10 | 11 | - map_uid = MAP_UNIX_TO_CYGWIN_ID (nfs_attr->uid); | |
| 11 | 12 | + if (map_uid == ILLEGAL_UID) { | |
| 12 | 13 | + if (pc.has_acls()) | |
| 13 | 14 | + map_uid = nfs_attr->uid; | |
| 14 | 15 | + else | |
| 15 | 16 | + map_uid = MAP_UNIX_TO_CYGWIN_ID (nfs_attr->uid); | |
| 16 | 17 | + } | |
| 17 | 18 | cygheap->ugid_cache.add_uid (nfs_attr->uid, map_uid); | |
| 18 | 19 | buf->st_uid = map_uid; | |
| 19 | 20 | } | |
| 20 | 21 | @@ -258,8 +262,12 @@ fhandler_base::fstat_by_nfs_ea (struct stat *buf) | |
| 21 | 22 | domain = cygheap->dom.get_rfc2307_domain (); | |
| 22 | 23 | if ((ldap_open || cldap.open (domain) == NO_ERROR)) | |
| 23 | 24 | map_gid = cldap.remap_gid (nfs_attr->gid); | |
| 24 | 25 | - if (map_gid == ILLEGAL_GID) | |
| 25 | 26 | - map_gid = MAP_UNIX_TO_CYGWIN_ID (nfs_attr->gid); | |
| 26 | 27 | + if (map_gid == ILLEGAL_GID) { | |
| 27 | 28 | + if (pc.has_acls()) | |
| 28 | 29 | + map_gid = nfs_attr->gid; | |
| 29 | 30 | + else | |
| 30 | 31 | + map_gid = MAP_UNIX_TO_CYGWIN_ID (nfs_attr->gid); | |
| 31 | 32 | + } | |
| 32 | 33 | cygheap->ugid_cache.add_gid (nfs_attr->gid, map_gid); | |
| 33 | 34 | buf->st_gid = map_gid; | |
| 34 | 35 | } | |
| 35 | 36 |
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
nrubsig.kpaste.net RSS