knfsd: only set ATTR_KILL_S*ID if ATTR_MODE isn't being explicitly set
commit8a0ce7d99a4d19788e017f3138bc59b9962057ae
authorJeff Layton <jlayton@redhat.com>
Thu, 18 Oct 2007 10:05:19 +0000 (18 03:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:22 +0000 (18 14:37 -0700)
tree07b61f8760081e377274f055e0433dc1695b6549
parent1ac564ecabc777636cf4eb88840802d7dc57d286
knfsd: only set ATTR_KILL_S*ID if ATTR_MODE isn't being explicitly set

It's theoretically possible for a single SETATTR call to come in that sets the
mode and the uid/gid.  In that case, don't set the ATTR_KILL_S*ID bits since
that would trip the BUG() in notify_change.  Just fix up the mode to have the
same effect.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: Neil Brown <neilb@suse.de>
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/nfsd/vfs.c