diff options
| author | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2001-04-11 02:19:01 +0000 |
|---|---|---|
| committer | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2001-04-11 02:19:01 +0000 |
| commit | fb1af1f2bf4633aa8b638e2a9ab927fd4f42f42b (patch) | |
| tree | 1186b779060f2ba547d7d7ff32f9ece6ab4f0b9a /bin/getfacl | |
| parent | 555153469623b11a50ac7fddd7a4f5375646363e (diff) | |
Notes
Diffstat (limited to 'bin/getfacl')
| -rw-r--r-- | bin/getfacl/getfacl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/getfacl/getfacl.c b/bin/getfacl/getfacl.c index 638d26d89af6..c5eb93964550 100644 --- a/bin/getfacl/getfacl.c +++ b/bin/getfacl/getfacl.c @@ -61,31 +61,31 @@ acl_from_stat(struct stat sb) acl->acl_entry[0].ae_id = sb.st_uid; acl->acl_entry[0].ae_perm = 0; if (sb.st_mode & S_IRUSR) - acl->acl_entry[0].ae_perm |= ACL_PERM_READ; + acl->acl_entry[0].ae_perm |= ACL_READ; if (sb.st_mode & S_IWUSR) - acl->acl_entry[0].ae_perm |= ACL_PERM_WRITE; + acl->acl_entry[0].ae_perm |= ACL_WRITE; if (sb.st_mode & S_IXUSR) - acl->acl_entry[0].ae_perm |= ACL_PERM_EXEC; + acl->acl_entry[0].ae_perm |= ACL_EXECUTE; acl->acl_entry[1].ae_tag = ACL_GROUP_OBJ; acl->acl_entry[1].ae_id = sb.st_gid; acl->acl_entry[1].ae_perm = 0; if (sb.st_mode & S_IRGRP) - acl->acl_entry[1].ae_perm |= ACL_PERM_READ; + acl->acl_entry[1].ae_perm |= ACL_READ; if (sb.st_mode & S_IWGRP) - acl->acl_entry[1].ae_perm |= ACL_PERM_WRITE; + acl->acl_entry[1].ae_perm |= ACL_WRITE; if (sb.st_mode & S_IXGRP) - acl->acl_entry[1].ae_perm |= ACL_PERM_EXEC; + acl->acl_entry[1].ae_perm |= ACL_EXECUTE; acl->acl_entry[2].ae_tag = ACL_OTHER_OBJ; acl->acl_entry[2].ae_id = 0; acl->acl_entry[2].ae_perm = 0; if (sb.st_mode & S_IROTH) - acl->acl_entry[2].ae_perm |= ACL_PERM_READ; + acl->acl_entry[2].ae_perm |= ACL_READ; if (sb.st_mode & S_IWOTH) - acl->acl_entry[2].ae_perm |= ACL_PERM_WRITE; + acl->acl_entry[2].ae_perm |= ACL_WRITE; if (sb.st_mode & S_IXOTH) - acl->acl_entry[2].ae_perm |= ACL_PERM_EXEC; + acl->acl_entry[2].ae_perm |= ACL_EXECUTE; acl->acl_cnt = 3; |
