1
0
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:
Volker Lendecke 2011-12-15 16:30:08 +01:00
parent bcd3db6264
commit 98f7ba52e3

View File

@ -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;