diff options
author | Tim Prouty <tprouty@samba.org> | 2009-06-25 18:19:09 -0700 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-06-25 18:25:48 -0700 |
commit | eb8c658fcdda5d1337605ed5e2e8da15bc51ba20 (patch) | |
tree | 1c010444ff42dd73afc0e1ad3cd8140dff168fd0 /source3/smbd/file_access.c | |
parent | 9001c53406241aeab4a3cfe0f663b71f67611cde (diff) | |
download | samba-eb8c658fcdda5d1337605ed5e2e8da15bc51ba20.tar.gz |
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.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/source3/smbd/file_access.c b/source3/smbd/file_access.c index 87d45c5e7f6..d8fee1db06f 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); } /**************************************************************************** |