diff options
author | Jeremy Allison <jra@samba.org> | 2011-11-15 16:14:47 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-11-15 17:01:58 -0800 |
commit | f5cda7160ce63abbde6878ca517680f417ffeb17 (patch) | |
tree | 6b30efff07c53238f77363ed77eb23efb889290e | |
parent | c27551b1631eff0c91d79fbcadce703eadc3efc1 (diff) | |
download | samba-f5cda7160ce63abbde6878ca517680f417ffeb17.tar.gz samba-f5cda7160ce63abbde6878ca517680f417ffeb17.tar.bz2 samba-f5cda7160ce63abbde6878ca517680f417ffeb17.zip |
Remove unneeded access check. This is done inside smb_set_file_size().
-rw-r--r-- | source3/smbd/trans2.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 2da3ed0c12..a5a1f83ceb 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -6727,10 +6727,6 @@ static NTSTATUS smb_set_file_end_of_file_info(connection_struct *conn, "file %s to %.0f\n", smb_fname_str_dbg(smb_fname), (double)size)); - if (fsp && !(fsp->access_mask & FILE_WRITE_DATA)) { - return NT_STATUS_ACCESS_DENIED; - } - return smb_set_file_size(conn, req, fsp, smb_fname, |