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
(parent:
f99af84
)
We need to return the correct atime
author
Volker Lendecke
<vl@samba.org>
Wed, 26 Dec 2007 13:18:11 +0000
(14:18 +0100)
committer
Volker Lendecke
<vl@samba.org>
Wed, 26 Dec 2007 13:55:57 +0000
(14:55 +0100)
On systems with nanosecond atime we need to re-stat after messing with the fd,
at least Solaris 10 updates atime after we stat(2)ed the file.
(This used to be commit
6e6ec0a563f8b7e3d4618ce60e776bcce53f40c4
)
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 9428b47b6a2776c233f2a381303bfd1e950fb5f5..f30808b30ac2ea458264604a512098c206614e83 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-2667,7
+2667,12
@@
NTSTATUS create_file_unixpath(connection_struct *conn,
*pinfo = info;
}
if (psbuf != NULL) {
- *psbuf = sbuf;
+ if ((fsp->fh == NULL) || (fsp->fh->fd == -1)) {
+ *psbuf = sbuf;
+ }
+ else {
+ SMB_VFS_FSTAT(fsp, fsp->fh->fd, psbuf);
+ }
}
return NT_STATUS_OK;