diff options
author | Volker Lendecke <vl@samba.org> | 2014-06-25 08:36:47 +0000 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-07-17 08:54:06 +0200 |
commit | f2da72f95646329a4aacb4378b84280e5f763ec6 (patch) | |
tree | bb8e5af32658e7e5ddfdf496b4119d97a350e4f9 | |
parent | f8af6870a061758a37bb6c63d09ce23ab971c6ce (diff) | |
download | samba-f2da72f95646329a4aacb4378b84280e5f763ec6.tar.gz |
smbd: Remove 2 indentation levels
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit 1dc5c20c8f7d8aa96fa0601bf5bf6dc69fb79d9f)
-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 72b8b598310..16d43077c5a 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2650,17 +2650,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; } } |