summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/020-undefined-chmod-fix.patch
blob: fb51300895a0a40983b0a46f157db0222fcc88ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Upstream-Status: Inappropriate [other]
Upstream is not making further releases of this software.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>

# Fix a problem with chmod attributes when using no_squash_all
# Patch origin: Wind River

---
 setattr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/setattr.c
+++ b/setattr.c
@@ -115,7 +115,7 @@ nfsstat setattr(char *path, sattr *attr,
 		}
 	}
 
-	if (flags & SATTR_CHMOD) {
+	if (flags & SATTR_CHMOD && attr->mode != -1) {
 		unsigned int	mode = attr->mode;
 
 		/* If setuid is not allowed, silently squash them */