coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] acl-permissions: Document FreeBSD ACL_TYPE_NFS4 acls


From: Andreas Gruenbacher
Subject: [PATCH 2/2] acl-permissions: Document FreeBSD ACL_TYPE_NFS4 acls
Date: Sun, 5 Jul 2015 22:49:50 +0200

* lib/set-permissions.c (set_acls): Document where support for FreeBSD
ACL_TYPE_NFS4 acls should go.
* lib/get-permissions.c (get_permissions): Likewise.
---
 lib/get-permissions.c | 6 ++++++
 lib/set-permissions.c | 9 +++++++++
 2 files changed, 15 insertions(+)

diff --git a/lib/get-permissions.c b/lib/get-permissions.c
index 6c6618d..459513c 100644
--- a/lib/get-permissions.c
+++ b/lib/get-permissions.c
@@ -60,6 +60,12 @@ get_permissions (const char *name, int desc, mode_t mode,
        return -1;
     }
 
+# if HAVE_ACL_TYPE_NFS4  /* FreeBSD */
+
+  /* TODO (see set_permissions). */
+
+# endif
+
 #  else /* HAVE_ACL_TYPE_EXTENDED */
   /* Mac OS X */
 
diff --git a/lib/set-permissions.c b/lib/set-permissions.c
index c40d03f..1aa5b49 100644
--- a/lib/set-permissions.c
+++ b/lib/set-permissions.c
@@ -541,6 +541,15 @@ set_acls (struct permission_context *ctx, const char 
*name, int desc,
        }
     }
 
+# if HAVE_ACL_TYPE_NFS4  /* FreeBSD */
+
+  /* File systems either support POSIX ACLs (for example, ufs) or NFS4 ACLs
+     (for example, zfs). */
+
+  /* TODO: Implement setting ACLs once get_permissions() reads them. */
+
+# endif
+
 #  else /* HAVE_ACL_TYPE_EXTENDED */
   /* Mac OS X */
 
-- 
2.4.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]