git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bcd3db6
)
s3: Make open_file_ntcreate a bit easier to read
author
Volker Lendecke
<vl@samba.org>
Thu, 15 Dec 2011 15:30:08 +0000
(16:30 +0100)
committer
Volker Lendecke
<vl@samba.org>
Fri, 16 Dec 2011 06:34:48 +0000
(07:34 +0100)
Remove a negation where it's not necessary
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 82a71c7030fb0a6ba2acfd95eadc90a54ef3acfc..4ea51dd4e9a46e04ef6094bebbc254adaa9a9159 100644
(file)
--- 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;
}
fsp->oplock_type = NO_OPLOCK;
}
- if (!(flags2 & O_TRUNC)) {
- info = FILE_WAS_OPENED;
- } else {
+ if (flags2 & O_TRUNC) {
info = FILE_WAS_OVERWRITTEN;
info = FILE_WAS_OVERWRITTEN;
+ } else {
+ info = FILE_WAS_OPENED;
}
} else {
info = FILE_WAS_CREATED;
}
} else {
info = FILE_WAS_CREATED;