summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index e37cdcb6b4b..4a5610e5e13 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1216,7 +1216,7 @@ void reply_setatr(struct smb_request *req)
else
mode &= ~aDIR;
- if (file_set_dosmode(conn, fname, mode, &smb_fname->st, NULL,
+ if (file_set_dosmode(conn, smb_fname, mode, NULL,
false) != 0) {
reply_unixerror(req, ERRDOS, ERRnoaccess);
goto out;