mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
Improved consistency of ownership for chmod
This commit is contained in:
parent
6b8648409c
commit
0377cd7107
@ -3545,7 +3545,11 @@ int ntfs_set_mode(struct SECURITY_CONTEXT *scx,
|
||||
oldattr = getsecurityattr(scx->vol,path, ni);
|
||||
if (oldattr) {
|
||||
phead = (const SECURITY_DESCRIPTOR_RELATIVE*)oldattr;
|
||||
#if OWNERFROMACL
|
||||
usid = acl_owner(oldattr);
|
||||
#else
|
||||
usid = (const SID*)&oldattr[le32_to_cpu(phead->owner)];
|
||||
#endif
|
||||
gsid = (const SID*)&oldattr[le32_to_cpu(phead->group)];
|
||||
fileuid = findowner(scx,usid);
|
||||
filegid = findgroup(scx,gsid);
|
||||
|
Loading…
Reference in New Issue
Block a user