]> err.no Git - linux-2.6/commit
NFS: if ATTR_KILL_S*ID bits are set, then skip mode change
authorJeff Layton <jlayton@redhat.com>
Thu, 18 Oct 2007 10:05:21 +0000 (03:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:22 +0000 (14:37 -0700)
commit188b95dd8ecb02dd6c6e5534cddc5a89aa4e2852
tree30c840426da519a2eabdb23d369e1c5bfb7b6d1c
parent6de0ec00ba8db84d7c452e65e502989455ecb6ea
NFS: if ATTR_KILL_S*ID bits are set, then skip mode change

If the ATTR_KILL_S*ID bits are set then any mode change is only for clearing
the setuid/setgid bits.  For NFS, skip the mode change and let the server
handle it.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/inode.c