]> Savannah Git Hosting - gnulib.git/commitdiff
acl-permissions: Document FreeBSD ACL_TYPE_NFS4 acls
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>
Sun, 5 Jul 2015 20:46:11 +0000 (22:46 +0200)
committerAndreas Gruenbacher <andreas.gruenbacher@gmail.com>
Sun, 5 Jul 2015 20:46:11 +0000 (22:46 +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
lib/set-permissions.c

index 6c6618df989ae8bba72df6e223d505af32b89cd1..459513c925144fa6be950cfeb2f9e204a69c0a9f 100644 (file)
@@ -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 */
 
index c40d03f7e7646f80384a91685b744b843092912f..1aa5b4941c749d8bd91b97ec8a8fefce753c3d30 100644 (file)
@@ -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 */