s3: VFS: change connection_struct cwd_fname to cwd_fsp
[samba.git] / source3 / smbd / uid.c
index a4bcb747d37e61b1856a10f4e173cea6c2847762..53c7aa7b7980f610d0c11c194f950351fc744282 100644 (file)
@@ -581,7 +581,7 @@ static void pop_conn_ctx(void)
        if (current_user.done_chdir && ctx_p->need_chdir) {
                int ret;
 
-               ret = vfs_ChDir(ctx_p->conn, ctx_p->conn->cwd_fname);
+               ret = vfs_ChDir(ctx_p->conn, ctx_p->conn->cwd_fsp->fsp_name);
                if (ret != 0) {
                        DBG_ERR("vfs_ChDir() failed!\n");
                        smb_panic("vfs_ChDir() failed!\n");