mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
Fix from "Jim McDonough" <jmcd@us.ibm.com>" - when we use open_file_shared(),
we need to close with close_file(). Jeremy.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user