Initialize the file descriptor in the files_struct before trying to close it. Otherwi...
commitf695430ffb7bb036ffbfdbc5baafb8e8698670e8
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Wed, 12 Jun 2013 21:49:53 +0000 (12 14:49 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 3 Jul 2013 08:22:29 +0000 (3 10:22 +0200)
tree16fa215243497042835bc648bb9e9a0e8f5e96c6
parent9f7cbc7e8916268da7fa6e2e7bd4e1a1154ab1ab
Initialize the file descriptor in the files_struct before trying to close it. Otherwise, if one of the SETXATTR calls had failed, the close() call will return EBADF.

Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <rsharpe@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun 13 01:43:18 CEST 2013 on sn-devel-104
(cherry picked from commit 5c488cfb79873287e769622fd5da43b7a735e29c)
source3/modules/vfs_streams_xattr.c