summaryrefslogtreecommitdiff
path: root/source3/smbd/file_access.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-06-25 18:19:09 -0700
committerTim Prouty <tprouty@samba.org>2009-06-25 18:25:48 -0700
commiteb8c658fcdda5d1337605ed5e2e8da15bc51ba20 (patch)
tree1c010444ff42dd73afc0e1ad3cd8140dff168fd0 /source3/smbd/file_access.c
parent9001c53406241aeab4a3cfe0f663b71f67611cde (diff)
downloadsamba-eb8c658fcdda5d1337605ed5e2e8da15bc51ba20.tar.gz
samba-eb8c658fcdda5d1337605ed5e2e8da15bc51ba20.tar.bz2
samba-eb8c658fcdda5d1337605ed5e2e8da15bc51ba20.zip
s3 file_access: Convert some more functions over to use smb_filneame
Diffstat (limited to 'source3/smbd/file_access.c')
-rw-r--r--source3/smbd/file_access.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/source3/smbd/file_access.c b/source3/smbd/file_access.c
index 87d45c5e7f..d8fee1db06 100644
--- a/source3/smbd/file_access.c
+++ b/source3/smbd/file_access.c
@@ -232,23 +232,10 @@ bool can_access_file_data(connection_struct *conn,
Note this doesn't take into account share write permissions.
****************************************************************************/
-bool can_write_to_file(connection_struct *conn, const char *fname, const SMB_STRUCT_STAT *psbuf)
+bool can_write_to_file(connection_struct *conn,
+ const struct smb_filename *smb_fname)
{
- struct smb_filename *smb_fname;
- NTSTATUS status;
- bool ret;
-
- status = create_synthetic_smb_fname_split(talloc_tos(), fname, psbuf,
- &smb_fname);
- if (!NT_STATUS_IS_OK(status)) {
- return false;
- }
-
- ret = can_access_file_data(conn, smb_fname, FILE_WRITE_DATA);
-
- TALLOC_FREE(smb_fname);
-
- return ret;
+ return can_access_file_data(conn, smb_fname, FILE_WRITE_DATA);
}
/****************************************************************************