summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-12-15 16:30:08 +0100
committerVolker Lendecke <vl@samba.org>2011-12-16 07:34:48 +0100
commit98f7ba52e341db4cd76e63662f90a68cc3624f39 (patch)
treefbc2ec1d4383c651aa5d2f278598a8fb32b05cf4 /source3/smbd
parentbcd3db6264fbe4d2e71c0844a46b885e3c542e2a (diff)
downloadsamba-98f7ba52e341db4cd76e63662f90a68cc3624f39.tar.gz
samba-98f7ba52e341db4cd76e63662f90a68cc3624f39.tar.bz2
samba-98f7ba52e341db4cd76e63662f90a68cc3624f39.zip
s3: Make open_file_ntcreate a bit easier to read
Remove a negation where it's not necessary
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 82a71c7030..4ea51dd4e9 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -2376,10 +2376,10 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
fsp->oplock_type = NO_OPLOCK;
}
- if (!(flags2 & O_TRUNC)) {
- info = FILE_WAS_OPENED;
- } else {
+ if (flags2 & O_TRUNC) {
info = FILE_WAS_OVERWRITTEN;
+ } else {
+ info = FILE_WAS_OPENED;
}
} else {
info = FILE_WAS_CREATED;