diff options
author | jedgar <jedgar@FreeBSD.org> | 2001-04-11 02:19:01 +0000 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2001-04-11 02:19:01 +0000 |
commit | 512fd8bc5fc1ea2d68c2d83ceebc552c788bbb5f (patch) | |
tree | 69a038e17e0a39af37ddd627fe20e6a146f1c3c3 /lib/libc/posix1e/acl_support.c | |
parent | 2c672eefadbb8dbdf2c91e1d1acad8c10e276fe0 (diff) | |
download | FreeBSD-src-512fd8bc5fc1ea2d68c2d83ceebc552c788bbb5f.zip FreeBSD-src-512fd8bc5fc1ea2d68c2d83ceebc552c788bbb5f.tar.gz |
Correct the following defines to match the POSIX.1e spec:
ACL_PERM_EXEC -> ACL_EXECUTE
ACL_PERM_READ -> ACL_READ
ACL_PERM_WRITE -> ACL_WRITE
Obtained from: TrustedBSD
Diffstat (limited to 'lib/libc/posix1e/acl_support.c')
-rw-r--r-- | lib/libc/posix1e/acl_support.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/posix1e/acl_support.c b/lib/libc/posix1e/acl_support.c index 128e1fc..26fcf07 100644 --- a/lib/libc/posix1e/acl_support.c +++ b/lib/libc/posix1e/acl_support.c @@ -351,17 +351,17 @@ _posix1e_acl_perm_to_string(acl_perm_t perm, ssize_t buf_len, char *buf) buf[3] = 0; /* null terminate */ - if (perm & ACL_PERM_READ) + if (perm & ACL_READ) buf[0] = ACL_STRING_PERM_READ; else buf[0] = ACL_STRING_PERM_NONE; - if (perm & ACL_PERM_WRITE) + if (perm & ACL_WRITE) buf[1] = ACL_STRING_PERM_WRITE; else buf[1] = ACL_STRING_PERM_NONE; - if (perm & ACL_PERM_EXEC) + if (perm & ACL_EXECUTE) buf[2] = ACL_STRING_PERM_EXEC; else buf[2] = ACL_STRING_PERM_NONE; @@ -382,13 +382,13 @@ _posix1e_acl_string_to_perm(char *string, acl_perm_t *perm) while (*ch) { switch(*ch) { case ACL_STRING_PERM_READ: - myperm |= ACL_PERM_READ; + myperm |= ACL_READ; break; case ACL_STRING_PERM_WRITE: - myperm |= ACL_PERM_WRITE; + myperm |= ACL_WRITE; break; case ACL_STRING_PERM_EXEC: - myperm |= ACL_PERM_EXEC; + myperm |= ACL_EXECUTE; break; case ACL_STRING_PERM_NONE: break; |