summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/acl/files/0013-nfsv4-posix-return-zero-length-default-acl-when-appr.patch')
-rw-r--r--sys-apps/acl/files/0013-nfsv4-posix-return-zero-length-default-acl-when-appr.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/sys-apps/acl/files/0013-nfsv4-posix-return-zero-length-default-acl-when-appr.patch b/sys-apps/acl/files/0013-nfsv4-posix-return-zero-length-default-acl-when-appr.patch
deleted file mode 100644
index 6c16356..0000000
--- a/sys-apps/acl/files/0013-nfsv4-posix-return-zero-length-default-acl-when-appr.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From aaa123a30a393fce1b5c998ef24c236d030fe8e2 Mon Sep 17 00:00:00 2001
-From: "J. Bruce Fields" <bfields@citi.umich.edu>
-Date: Wed, 31 Jan 2007 12:47:27 -0500
-Subject: [PATCH 13/17] nfsv4->posix: return zero-length default acl when
- appropriate
-
-A normal posix acl isn't zero-length: having "no" posix acl is
-equivalent to having a 3-ace posix acl determined by the mode.
-
-Default acls, however, may be zero-length. We should be returning a
-zero-length posix acl when given an nfsv4 acl with no inheritable aces.
-
-Fixes a problem that caused all directories to appear to have a default
-acl that grants no permissions.
-
-Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
----
- libacl/acl_n4tp_acl_trans.c | 5 +++++
- 1 files changed, 5 insertions(+), 0 deletions(-)
-
-diff --git a/libacl/acl_n4tp_acl_trans.c b/libacl/acl_n4tp_acl_trans.c
-index eca94ff..62ac81a 100644
---- a/libacl/acl_n4tp_acl_trans.c
-+++ b/libacl/acl_n4tp_acl_trans.c
-@@ -403,6 +403,11 @@ acl_t acl_n4tp_acl_trans(struct nfs4_acl * nacl_p, acl_type_t ptype)
-
- acl_nfs4_check_inheritance(temp_acl, iflags);
-
-+ if (ptype == ACL_TYPE_DEFAULT && temp_acl->naces == 0) {
-+ acl_nfs4_free(temp_acl);
-+ return acl_init(0);
-+ }
-+
- ret = init_state(&state, temp_acl->naces);
- if (ret)
- goto free_failed;
---
-1.7.8.1
-