From b08ee8995da1960546df31fdf876665c996083b3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 22 Jun 2001 18:58:35 +0000 Subject: Fix from "Jim McDonough" " - when we use open_file_shared(), we need to close with close_file(). Jeremy. (This used to be commit 5b2ffd160f3b4b9607bb6fd6db1644af9254ad9e) --- source3/rpc_server/srv_srvsvc_nt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index 4650512218..d071572804 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -1639,7 +1639,7 @@ uint32 _srv_net_file_query_secdesc(pipes_struct *p, SRV_Q_NET_FILE_QUERY_SECDESC psd->dacl->revision = (uint16) NT4_ACL_REVISION; - fsp->conn->vfs_ops.close(fsp, fsp->fd); + close_file(fsp, True); file_free(fsp); close_cnum(conn, user.vuid); @@ -1648,7 +1648,7 @@ uint32 _srv_net_file_query_secdesc(pipes_struct *p, SRV_Q_NET_FILE_QUERY_SECDESC error_exit: if(fsp) { - fsp->conn->vfs_ops.close(fsp, fsp->fd); + close_file(fsp, True); file_free(fsp); } @@ -1726,7 +1726,7 @@ uint32 _srv_net_file_set_secdesc(pipes_struct *p, SRV_Q_NET_FILE_SET_SECDESC *q_ goto error_exit; } - fsp->conn->vfs_ops.close(fsp, fsp->fd); + close_file(fsp, True); file_free(fsp); close_cnum(conn, user.vuid); return r_u->status; @@ -1734,7 +1734,7 @@ uint32 _srv_net_file_set_secdesc(pipes_struct *p, SRV_Q_NET_FILE_SET_SECDESC *q_ error_exit: if(fsp) { - fsp->conn->vfs_ops.close(fsp, fsp->fd); + close_file(fsp, True); file_free(fsp); } -- cgit