git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7c68d88
)
libsmb: Simplify an if-condition
author
Volker Lendecke
<vl@samba.org>
Fri, 2 Feb 2024 14:06:06 +0000
(15:06 +0100)
committer
Volker Lendecke
<vl@samba.org>
Tue, 12 Mar 2024 13:31:31 +0000
(13:31 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libsmb/clifile.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clifile.c
b/source3/libsmb/clifile.c
index cc1b4d40044e347e78f35671a24693d516a5ec1b..1ff3973bb39b1ce1fed0d2d0166fb79d0616827f 100644
(file)
--- a/
source3/libsmb/clifile.c
+++ b/
source3/libsmb/clifile.c
@@
-3509,7
+3509,7
@@
NTSTATUS cli_open(struct cli_state *cli, const char *fname, int flags,
}
#if defined(O_SYNC)
- if (
(flags & O_SYNC) ==
O_SYNC) {
+ if (
flags &
O_SYNC) {
dos_deny |= (1<<14);
}
#endif /* O_SYNC */