From: OGAWA Hirofumi Date: Thu, 12 Jun 2008 22:21:28 +0000 (-0700) Subject: fat: relax the permission check of fat_setattr() X-Git-Tag: v2.6.26-rc7~68 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d518f84e5ecd1d71df0e6ac5176d212f68c27ce;p=pandora-kernel.git fat: relax the permission check of fat_setattr() New chmod() allows only acceptable permission, and if not acceptable, it returns -EPERM. Old one allows even if it can't store permission to on disk inode. But it seems too strict for users. E.g. https://bugzilla.redhat.com/show_bug.cgi?id=449080: With new one, rsync couldn't create the temporary file. So, this patch allows like old one, but now it doesn't change the permission if it can't store, and it returns 0. Also, this patch fixes missing check. Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed