aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/unfs-server/unfs-server-2.2beta47/020-undefined-chmod-fix.patch
blob: 0f1108c214e1dddc3930b05ebb4ff23325823b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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 */