Hi, while writing a script to set NFSv4 ACL on ZFS file systems I've noticed that getfacl shows the permissions bits in in different order than other systems. On FreeBSD the full_set is: "rwxpDdaARWcCos" On illumos and Synology Diskstation Linux the full_set is: "rwxpdDaARWcCos" Note the "dD" vs. "Dd". Just for reference: * delete (d) Permission to delete a file. * delete_child (D) Permission to delete a file within a directory. I've stumbled upon this minor oddity while trying to set the FreeBSD style ACE on illumos, which fails: # chmod A+group:staff:rwxpDdaARWc--s:fd:allow /mnt/acltest Invalid permission(s) 'rwxpDdaARWc--s' specified This one works: # chmod A+group:staff:rwxpdDaARWc--s:fd:allow /mnt/acltest So why not use the same style?
Created attachment 260267 [details] git(1) diff against libc Looking at this a bit, I guess the attached patch against libc would be sufficient. I can't see anything that really 'does' positional bits in FreeBSD that would break, so I don't think there's much downside.