[linux-yocto] [PATCH 3/3] fs/yaffs2: Fix a judgement logic for ACL operations
Yang Shi
yang.shi at windriver.com
Wed Sep 9 12:45:25 PDT 2015
From: Zhang Xiao <xiao.zhang at windriver.com>
Currently yaffs doesn't support ACL thus all related
operations should return error. While the judgement
on ACL operation miss a "!" thus cause this mechanism
failed. Add a "!" to fix it.
Signed-off-by: Zhang Xiao <xiao.zhang at windriver.com>
---
fs/yaffs2/yaffs_vfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c
index a7a7d06..52177c1 100644
--- a/fs/yaffs2/yaffs_vfs.c
+++ b/fs/yaffs2/yaffs_vfs.c
@@ -932,7 +932,7 @@ static int yaffs_setxattr(struct dentry *dentry, const char *name,
/* Currently we don't support posix ACL so never accept any settings
* start with "system.posix_acl_".
*/
- if (strncmp(name, "system.posix_acl_", 17))
+ if (!strncmp(name, "system.posix_acl_", 17))
error = -EOPNOTSUPP;
if (error == 0) {
--
2.0.2
More information about the linux-yocto
mailing list