diff options
author | Volker Lendecke <vl@samba.org> | 2014-06-25 08:36:47 +0000 |
---|---|---|
committer | David Disseldorp <ddiss@samba.org> | 2014-06-25 11:22:12 +0200 |
commit | 1dc5c20c8f7d8aa96fa0601bf5bf6dc69fb79d9f (patch) | |
tree | 6073baab04e23a6a9556730da5d2be0cefdafa61 /source3/smbd | |
parent | c4f7c02137cb2aa1d58251362e7e04ad32ede5d8 (diff) | |
download | samba-1dc5c20c8f7d8aa96fa0601bf5bf6dc69fb79d9f.tar.gz samba-1dc5c20c8f7d8aa96fa0601bf5bf6dc69fb79d9f.tar.xz samba-1dc5c20c8f7d8aa96fa0601bf5bf6dc69fb79d9f.zip |
smbd: Remove 2 indentation levels
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/open.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 687caee6ab..a8bd974a3b 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2680,17 +2680,17 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, } /* Should we atomically (to the client at least) truncate ? */ - if (!new_file_created) { - if (flags2 & O_TRUNC) { - if (!S_ISFIFO(fsp->fsp_name->st.st_ex_mode)) { - int ret = vfs_set_filelen(fsp, 0); - if (ret != 0) { - status = map_nt_error_from_unix(errno); - TALLOC_FREE(lck); - fd_close(fsp); - return status; - } - } + if ((!new_file_created) && + (flags2 & O_TRUNC) && + (!S_ISFIFO(fsp->fsp_name->st.st_ex_mode))) { + int ret; + + ret = vfs_set_filelen(fsp, 0); + if (ret != 0) { + status = map_nt_error_from_unix(errno); + TALLOC_FREE(lck); + fd_close(fsp); + return status; } } |