pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS

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
12
diff --git a/winsup/cygwin/fhandler/disk_file.cc b/winsup/cygwin/fhandler/disk_file.cc
23
index d54d3747e..92a54d9db 100644
34
--- a/winsup/cygwin/fhandler/disk_file.cc
45
+++ b/winsup/cygwin/fhandler/disk_file.cc
56
@@ -239,8 +239,12 @@ fhandler_base::fstat_by_nfs_ea (struct stat *buf)
67
 	  domain = cygheap->dom.get_rfc2307_domain ();
78
 	  if ((ldap_open = (cldap.open (domain) == NO_ERROR)))
89
 	    map_uid = cldap.remap_uid (nfs_attr->uid);
910
-	  if (map_uid == ILLEGAL_UID)
1011
-	    map_uid = MAP_UNIX_TO_CYGWIN_ID (nfs_attr->uid);
1112
+	  if (map_uid == ILLEGAL_UID) {
1213
+            if (pc.has_acls())
1314
+              map_uid = nfs_attr->uid;
1415
+            else
1516
+              map_uid = MAP_UNIX_TO_CYGWIN_ID (nfs_attr->uid);
1617
+          }
1718
 	  cygheap->ugid_cache.add_uid (nfs_attr->uid, map_uid);
1819
 	  buf->st_uid = map_uid;
1920
 	}
2021
@@ -258,8 +262,12 @@ fhandler_base::fstat_by_nfs_ea (struct stat *buf)
2122
 	  domain = cygheap->dom.get_rfc2307_domain ();
2223
 	  if ((ldap_open || cldap.open (domain) == NO_ERROR))
2324
 	    map_gid = cldap.remap_gid (nfs_attr->gid);
2425
-	  if (map_gid == ILLEGAL_GID)
2526
-	    map_gid = MAP_UNIX_TO_CYGWIN_ID (nfs_attr->gid);
2627
+	  if (map_gid == ILLEGAL_GID) {
2728
+            if (pc.has_acls())
2829
+              map_gid = nfs_attr->gid;
2930
+            else
3031
+	      map_gid = MAP_UNIX_TO_CYGWIN_ID (nfs_attr->gid);
3132
+          }
3233
 	  cygheap->ugid_cache.add_gid (nfs_attr->gid, map_gid);
3334
 	  buf->st_gid = map_gid;
3435
 	}
3536

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at