diff options
author | Tim Potter <tpot@samba.org> | 1999-04-04 07:03:47 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 1999-04-04 07:03:47 +0000 |
commit | 6001bd4c46b5b5bda423c314de0bb68a4b55ab1d (patch) | |
tree | 613d09e2654f0c6c778dd2879c1ba93e52cc8d6c /source3 | |
parent | 2cda53ba68782061ec3d48fcbc0580c9701dfbfb (diff) | |
download | samba-6001bd4c46b5b5bda423c314de0bb68a4b55ab1d.tar.gz samba-6001bd4c46b5b5bda423c314de0bb68a4b55ab1d.tar.bz2 samba-6001bd4c46b5b5bda423c314de0bb68a4b55ab1d.zip |
Use VFS operations for file I/O.
Modified invocations of fd_attempt_close as it now takes a fsp instead
of a fd.
(This used to be commit ef24fcb7b2248aae9c3f1fb4df7466b5ae35f5ce)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/close.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 94923b6db2..024a3c03e4 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -119,7 +119,7 @@ void close_file(files_struct *fsp, BOOL normal_close) del_share_mode(token, fsp); } - if(fd_attempt_close(fsp->fd_ptr) == 0) + if(fd_attempt_close(fsp) == 0) last_reference = True; fsp->fd_ptr = NULL; @@ -144,8 +144,7 @@ void close_file(files_struct *fsp, BOOL normal_close) if (normal_close && last_reference && delete_on_close) { DEBUG(5,("close_file: file %s. Delete on close was set - deleting file.\n", fsp->fsp_name)); - if(dos_unlink(fsp->fsp_name) != 0) { - + if(fsp->conn->vfs_ops.unlink(dos_to_unix(fsp->fsp_name, False)) != 0) { /* * This call can potentially fail as another smbd may have * had the file open with delete on close set and deleted |