diff options
author | Christof Schmitt <christof.schmitt@us.ibm.com> | 2013-06-12 14:49:53 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-06-13 01:43:17 +0200 |
commit | 5c488cfb79873287e769622fd5da43b7a735e29c (patch) | |
tree | f1b58574a21c130776da6e9da120917f181bb25e | |
parent | d6ce1402a964858bf40b23f34df01f1f01839d3a (diff) | |
download | samba-5c488cfb79873287e769622fd5da43b7a735e29c.tar.gz samba-5c488cfb79873287e769622fd5da43b7a735e29c.tar.bz2 samba-5c488cfb79873287e769622fd5da43b7a735e29c.zip |
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
-rw-r--r-- | source3/modules/vfs_streams_xattr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index de67197c71..82e2dd8d1e 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -527,6 +527,7 @@ static int streams_xattr_open(vfs_handle_struct *handle, * BUGBUGBUG -- we would need to call fd_close_posix here, but * we don't have a full fsp yet */ + fsp->fh->fd = hostfd; SMB_VFS_CLOSE(fsp); } |