Initialize the file descriptor in the files_struct before trying to close it. Otherwi...
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Wed, 12 Jun 2013 21:49:53 +0000 (14:49 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 12 Jun 2013 23:43:17 +0000 (01:43 +0200)
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

source3/modules/vfs_streams_xattr.c

index de67197c71ac0f206e09afd44669bc81332d7b1a..82e2dd8d1efb2ab9e65cc4fe3f62e52aac3f85fe 100644 (file)
@@ -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);
        }