summaryrefslogtreecommitdiff
path: root/source3/smbd/close.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-05-02 17:22:10 -0700
committerJeremy Allison <jra@samba.org>2008-05-02 17:22:10 -0700
commitb430b382202858a6c52c1cacbb91910b2dd7e16c (patch)
tree4d2e2900d03a5abde1e7dd24b5c23404972a3712 /source3/smbd/close.c
parent85dc0ad7beb50dbab6d98a22b114f20537425268 (diff)
downloadsamba-b430b382202858a6c52c1cacbb91910b2dd7e16c.tar.gz
samba-b430b382202858a6c52c1cacbb91910b2dd7e16c.tar.bz2
samba-b430b382202858a6c52c1cacbb91910b2dd7e16c.zip
Remove the "stat_open()" function, flag, and all associated code. It was only
being (correctly) used in the can_read/can_write checks for hide unreadable/unwritable and this is more properly done using the functions in smbd/file_access.c. Preparing to do NT access checks on all file access. Jeremy. (This used to be commit 6bfb06ad95963ae2acb67c4694a98282d3b29faa)
Diffstat (limited to 'source3/smbd/close.c')
-rw-r--r--source3/smbd/close.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 3afc037f69..e27d5c44fa 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -703,20 +703,6 @@ static NTSTATUS close_directory(files_struct *fsp, enum file_close_type close_ty
}
/****************************************************************************
- Close a 'stat file' opened internally.
-****************************************************************************/
-
-static NTSTATUS close_stat(files_struct *fsp)
-{
- /*
- * Do the code common to files and directories.
- */
- close_filestruct(fsp);
- file_free(fsp);
- return NT_STATUS_OK;
-}
-
-/****************************************************************************
Close a files_struct.
****************************************************************************/
@@ -727,8 +713,6 @@ NTSTATUS close_file(files_struct *fsp, enum file_close_type close_type)
if(fsp->is_directory) {
status = close_directory(fsp, close_type);
- } else if (fsp->is_stat) {
- status = close_stat(fsp);
} else if (fsp->fake_file_handle != NULL) {
status = close_fake_file(fsp);
} else {