summaryrefslogtreecommitdiff
blob: 07146a2804d13645ad11806801ff9beec0c888d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 2f7a5c64d7e873ee7afc47e420a124b2f5aa26e5 Mon Sep 17 00:00:00 2001
From: "J. Bruce Fields" <bfields@snoopy.citi.umich.edu>
Date: Tue, 12 Dec 2006 16:46:54 -0500
Subject: [PATCH 05/17] fix WRITE_MODE

Note only two uses of WRITE_MODE both assume that DELETE_CHILD is not or'd in
to it.
---
 include/libacl_nfs4.h |    3 +--
 libacl/libacl_nfs4.h  |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/libacl_nfs4.h b/include/libacl_nfs4.h
index 9103424..ab16450 100644
--- a/include/libacl_nfs4.h
+++ b/include/libacl_nfs4.h
@@ -10,8 +10,7 @@
 
 /* mode bit translations: */
 #define NFS4_READ_MODE NFS4_ACE_READ_DATA
-#define NFS4_WRITE_MODE (NFS4_ACE_WRITE_DATA \
-		| NFS4_ACE_APPEND_DATA | NFS4_ACE_DELETE_CHILD)
+#define NFS4_WRITE_MODE (NFS4_ACE_WRITE_DATA | NFS4_ACE_APPEND_DATA)
 #define NFS4_EXECUTE_MODE NFS4_ACE_EXECUTE
 #define NFS4_ANYONE_MODE (NFS4_ACE_READ_ATTRIBUTES | NFS4_ACE_READ_ACL | \
 		NFS4_ACE_SYNCHRONIZE)
diff --git a/libacl/libacl_nfs4.h b/libacl/libacl_nfs4.h
index 1402f92..c3d7ef3 100644
--- a/libacl/libacl_nfs4.h
+++ b/libacl/libacl_nfs4.h
@@ -10,8 +10,7 @@
 
 /* mode bit translations: */
 #define NFS4_READ_MODE NFS4_ACE_READ_DATA
-#define NFS4_WRITE_MODE (NFS4_ACE_WRITE_DATA \
-		| NFS4_ACE_APPEND_DATA | NFS4_ACE_DELETE_CHILD)
+#define NFS4_WRITE_MODE (NFS4_ACE_WRITE_DATA | NFS4_ACE_APPEND_DATA)
 #define NFS4_EXECUTE_MODE NFS4_ACE_EXECUTE
 #define NFS4_ANYONE_MODE (NFS4_ACE_READ_ATTRIBUTES | NFS4_ACE_READ_ACL | \
 		NFS4_ACE_SYNCHRONIZE)
-- 
1.7.8.1