git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36913aa
)
r3853: Fix an uninitialized variable warning. Jeremy, there are some of these in
author
Volker Lendecke
<vlendec@samba.org>
Thu, 18 Nov 2004 16:14:13 +0000
(16:14 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:53:21 +0000
(10:53 -0500)
charcnv.c.
Volker
(This used to be commit
650d52648dbf67f71d7619ffb8bf32d93a15ae9c
)
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 55970493fa16edf644cdb020590440426962c7d0..1b5ba1228f48f53ea5e4a5df706df200af43ebe0 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-1376,6
+1376,8
@@
flags=0x%X flags2=0x%X mode=0%o returned %d\n",
(*Access) = open_mode;
}
+ action = 0;
+
if (file_existed && !(flags2 & O_TRUNC))
action = FILE_WAS_OPENED;
if (file_existed && (flags2 & O_TRUNC))