From 98f7ba52e341db4cd76e63662f90a68cc3624f39 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 15 Dec 2011 16:30:08 +0100 Subject: [PATCH] s3: Make open_file_ntcreate a bit easier to read Remove a negation where it's not necessary --- source3/smbd/open.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 82a71c7030f..4ea51dd4e9a 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; -- 2.34.1