git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
401ba9c
)
s3: Move a variable declaration to its only use
author
Volker Lendecke
<vl@samba.org>
Mon, 23 Nov 2009 10:54:19 +0000
(11:54 +0100)
committer
Volker Lendecke
<vl@samba.org>
Mon, 23 Nov 2009 13:22:54 +0000
(14:22 +0100)
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index e9e632a351facb6a7379b87489708bd49403d1ce..f8e1927bd48488326035bd8d2aafc88cd54e9b9b 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-1470,7
+1470,6
@@
static NTSTATUS open_file_ntcreate(connection_struct *conn,
struct share_mode_lock *lck = NULL;
uint32 open_access_mask = access_mask;
NTSTATUS status;
- int ret_flock;
char *parent_dir;
ZERO_STRUCT(id);
@@
-2092,6
+2091,7
@@
static NTSTATUS open_file_ntcreate(connection_struct *conn,
note that GPFS supports it as well - jmcd */
if (fsp->fh->fd != -1) {
+ int ret_flock;
ret_flock = SMB_VFS_KERNEL_FLOCK(fsp, share_access, access_mask);
if(ret_flock == -1 ){