1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

smbd: Stop using vfs_Chdir after SMB_VFS_DISCONNECT.

This sequencing is causing problems for vfs_ceph, and likely
other vfs modules.

Signed-off-by: Ira Cooper <ira@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jan 16 00:13:17 CET 2015 on sn-devel-104
This commit is contained in:
Ira Cooper 2015-01-15 11:41:50 -05:00 committed by Jeremy Allison
parent ef7fb904a9
commit 81464daea7

View File

@ -1133,12 +1133,12 @@ void close_cnum(connection_struct *conn, uint64_t vuid)
talloc_tos()),
lp_servicename(talloc_tos(), SNUM(conn))));
/* Call VFS disconnect hook */
SMB_VFS_DISCONNECT(conn);
/* make sure we leave the directory available for unmount */
vfs_ChDir(conn, "/");
/* Call VFS disconnect hook */
SMB_VFS_DISCONNECT(conn);
/* execute any "postexec = " line */
if (*lp_postexec(talloc_tos(), SNUM(conn)) &&
change_to_user(conn, vuid)) {