]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: Pass setxattr(2) flags properly
authorJan Kara <jack@suse.cz>
Wed, 20 Apr 2011 18:30:40 +0000 (20:30 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Apr 2011 14:34:44 +0000 (07:34 -0700)
commite5f7accc7af9fc695b8507de47360e9b2d370cf6
tree7dd8f9f0fe4cdcb27242a33783440bae5690e47e
parent11c354ed455e7d687e36f1bdc8f896445f49bcfe
vfs: Pass setxattr(2) flags properly

For some reason generic_setxattr() did not pass flags (XATTR_CREATE,
XATTR_REPLACE) to the filesystem specific helper. This caused that
setxattr(2) syscall just ignored these flags.

Fix the bug by passing flags correctly.

Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/xattr.c