]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(acl_entries): Add fallback implementation for POSIX ACL
authorJim Meyering <jim@meyering.net>
Sat, 17 Dec 2005 10:31:33 +0000 (10:31 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 17 Dec 2005 10:31:33 +0000 (10:31 +0000)
commit4a12f5ebcf703b492af118b6d35ee43074722e0b
tree18339eb8023af4a69490dadd3f150a20ac3fc498
parent9566c9c9d3fe4d68470661c2dc9182e291425415
(acl_entries): Add fallback implementation for POSIX ACL
systems other than Linux.
(chmod_or_fchmod): New function: use fchmod when possible,
and chmod otherwise.
(file_has_acl): Add a POSIX ACL implementation, with a
Linux-specific subcase.
(copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
S_ISVTX from one file to another.  Fall back to fchmod/chmod when
acls are unsupported.
(set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
are unsupported.
lib/acl.c