mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3: Make open_file_ntcreate a bit easier to read
Remove a negation where it's not necessary
This commit is contained in:
parent
bcd3db6264
commit
98f7ba52e3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user