git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7c351b
)
s3:smbd: only set fsp->fh->gen_id for a client connection
author
Stefan Metzmacher
<metze@samba.org>
Wed, 13 Jun 2012 13:40:23 +0000
(15:40 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 14 Jun 2012 16:13:31 +0000
(18:13 +0200)
For faked connections, like dfs and printing, we leave it as 0.
metze
source3/smbd/files.c
patch
|
blob
|
history
diff --git
a/source3/smbd/files.c
b/source3/smbd/files.c
index fb9dacce9954692c01bbef17d8e9229af7b5d64e..3fc36d5783dcdcc61cc31390f829c8f938fb8944 100644
(file)
--- a/
source3/smbd/files.c
+++ b/
source3/smbd/files.c
@@
-119,7
+119,6
@@
NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
fsp->fnum = -1;
fsp->conn = conn;
- fsp->fh->gen_id = get_gen_count(sconn);
GetTimeOfDay(&fsp->open_time);
if (sconn->file_bmap != NULL) {
@@
-129,6
+128,8
@@
NTSTATUS file_new(struct smb_request *req, connection_struct *conn,
fsp->fnum = i + FILE_HANDLE_OFFSET;
SMB_ASSERT(fsp->fnum < 65536);
+
+ fsp->fh->gen_id = get_gen_count(sconn);
}
DLIST_ADD(sconn->files, fsp);