void file_close_pid(struct smbd_server_connection *sconn, uint16 smbpid,
int vuid);
void file_init(void);
-void file_close_user(int vuid);
+void file_close_user(struct smbd_server_connection *sconn, int vuid);
struct files_struct *files_forall(
struct files_struct *(*fn)(struct files_struct *fsp,
void *private_data),
Close files open by a specified vuid.
****************************************************************************/
-void file_close_user(int vuid)
+void file_close_user(struct smbd_server_connection *sconn, int vuid)
{
files_struct *fsp, *next;
- for (fsp=smbd_server_conn->files;fsp;fsp=next) {
+ for (fsp=sconn->files; fsp; fsp=next) {
next=fsp->next;
if (fsp->vuid == vuid) {
close_file(NULL, fsp, SHUTDOWN_CLOSE);
/* in user level security we are supposed to close any files
open by this user */
if ((vuser != NULL) && (lp_security() != SEC_SHARE)) {
- file_close_user(req->vuid);
+ file_close_user(sconn, req->vuid);
}
invalidate_vuid(sconn, req->vuid);