]> err.no Git - linux-2.6/commit
CIFS: ignore mode change if it's just for clearing setuid/setgid bits
authorJeff Layton <jlayton@redhat.com>
Thu, 18 Oct 2007 10:05:22 +0000 (03:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:22 +0000 (14:37 -0700)
commitd32c4f2626acc385d5187bd5c0c24f442328dc60
treecd08c94dcf8610c2c2cfc96e5abe744163f3a038
parent188b95dd8ecb02dd6c6e5534cddc5a89aa4e2852
CIFS: ignore mode change if it's just for clearing setuid/setgid bits

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

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: Steven French <sfrench@us.ibm.com>
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/cifs/inode.c