summaryrefslogtreecommitdiff
path: root/source3/smbd/nttrans.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/nttrans.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/nttrans.c')
-rw-r--r--source3/smbd/nttrans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 560b844a56..04767bf559 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -673,7 +673,7 @@ void reply_ntcreate_and_X(struct smb_request *req)
uint32 perms = 0;
p += 25;
if (fsp->is_directory ||
- can_write_to_file(conn, fsp->fsp_name, &smb_fname->st)) {
+ can_write_to_file(conn, smb_fname)) {
perms = FILE_GENERIC_ALL;
} else {
perms = FILE_GENERIC_READ|FILE_EXECUTE;
@@ -1155,7 +1155,7 @@ static void call_nt_transact_create(connection_struct *conn,
uint32 perms = 0;
p += 25;
if (fsp->is_directory ||
- can_write_to_file(conn, fsp->fsp_name, &smb_fname->st)) {
+ can_write_to_file(conn, smb_fname)) {
perms = FILE_GENERIC_ALL;
} else {
perms = FILE_GENERIC_READ|FILE_EXECUTE;