trying to get HEAD building again. If you want the code
[abartlet/samba.git/.git] / source3 / smbd / close.c
index 5cca85500fd831dbf0d1e8688494cbdfe9ce1a8a..1be13270bab296e1f5b15d1fcccd239023758dc4 100644 (file)
@@ -185,7 +185,7 @@ static int close_normal_file(files_struct *fsp, BOOL normal_close)
        if (normal_close && delete_on_close) {
                DEBUG(5,("close_file: file %s. Delete on close was set - deleting file.\n",
                        fsp->fsp_name));
-               if(fsp->conn->vfs_ops.unlink(conn,fsp->fsp_name) != 0) {
+               if(SMB_VFS_UNLINK(conn,fsp->fsp_name) != 0) {
                        /*
                         * This call can potentially fail as another smbd may have
                         * had the file open with delete on close set and deleted