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
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)) {