generic-poky/meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/020-undefined-chmod-fix.patch
Scott Garman 34cd3f70af unfs-server: add Upstream-Status field to patches
(From OE-Core rev: a0ae76f922816896bbdcd67dfa4e4f2b3e769184)

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-19 17:34:20 +01:00

24 lines
593 B
Diff

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 */