summaryrefslogtreecommitdiff
blob: f2f84020296d7676aecee6eb6df514a16c0cf40f (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
From 6542fbd970376cc7f7cbdfa1a6dfc7efc5149d62 Mon Sep 17 00:00:00 2001
From: "J. Bruce Fields" <bfields@citi.umich.edu>
Date: Wed, 9 May 2007 14:20:34 -0400
Subject: [PATCH 14/17] nfsd4: remove spurious XATTR_REPLACE

For some reason we're calling acl_set_file with XATTR_REPLACE.  I have
no idea why, and it can make it impossible to set an acl on a filesystem
that didn't previously have one (on those filesystems that don't just
fake up an acl on their on in this case).

Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
---
 libacl/acl_set_file.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libacl/acl_set_file.c b/libacl/acl_set_file.c
index 303e39c..ba84999 100644
--- a/libacl/acl_set_file.c
+++ b/libacl/acl_set_file.c
@@ -140,8 +140,7 @@ acl_set_file(const char *path_p, acl_type_t type, acl_t acl)
 
 	if (!ext_acl_p)
 		return -1;
-
-	error = setxattr(path_p, name, (char *)ext_acl_p, size, XATTR_REPLACE);
+	error = setxattr(path_p, name, (char *)ext_acl_p, size, 0);
 	free(ext_acl_p);
 	return error;
 }
-- 
1.7.8.1