git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1f7c87
)
smbd: SMB2 write time mode...???
author
Stefan Metzmacher
<metze@samba.org>
Tue, 14 Aug 2018 19:45:50 +0000
(21:45 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 14 Aug 2018 19:45:50 +0000
(21:45 +0200)
source3/smbd/fileio.c
patch
|
blob
|
history
diff --git
a/source3/smbd/fileio.c
b/source3/smbd/fileio.c
index 1fe806e058d28db895501bd67ba751c6902d9755..c75b8a4dcef2f083bf1d17d516ccc93e8a8e8e41 100644
(file)
--- a/
source3/smbd/fileio.c
+++ b/
source3/smbd/fileio.c
@@
-178,6
+178,10
@@
void fsp_flush_write_time_update(struct files_struct *fsp)
/* Remove the timed event handler. */
TALLOC_FREE(fsp->update_write_time_event);
+ if (fsp->conn->sconn->client->connections->protocol >= PROTOCOL_SMB2_02) {
+ fsp->update_write_time_triggered = false;
+ fsp->update_write_time_on_close = false;
+ }
}
static void update_write_time_handler(struct tevent_context *ctx,
@@
-287,6
+291,7
@@
void mark_file_modified(files_struct *fsp)
int dosmode;
if (fsp->modified) {
+ trigger_write_time_update(fsp);
return;
}