summaryrefslogtreecommitdiffstats
path: root/sys/nwfs/nwfs_node.c
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2000-04-05 10:44:04 +0000
committerbp <bp@FreeBSD.org>2000-04-05 10:44:04 +0000
commit8ba252e4e1282bc7512da73cc01ec710a64f9759 (patch)
tree3b311ecbe4cd970eccd6758e923960f24f131e98 /sys/nwfs/nwfs_node.c
parentc41aef9448b8ca86cc10997777a6e5a89bdb21a2 (diff)
downloadFreeBSD-src-8ba252e4e1282bc7512da73cc01ec710a64f9759.zip
FreeBSD-src-8ba252e4e1282bc7512da73cc01ec710a64f9759.tar.gz
Try to obtain timezone offset from an environment of mount program.
This helps in cases where CMOS clock set to UTC time.
Diffstat (limited to 'sys/nwfs/nwfs_node.c')
-rw-r--r--sys/nwfs/nwfs_node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nwfs/nwfs_node.c b/sys/nwfs/nwfs_node.c
index 223143e..25d9225 100644
--- a/sys/nwfs/nwfs_node.c
+++ b/sys/nwfs/nwfs_node.c
@@ -284,9 +284,9 @@ nwfs_attr_cacheenter(struct vnode *vp, struct nw_entry_info *fi) {
va->va_fileid = NWFS_ROOT_INO;
va->va_blocksize=nmp->connh->nh_conn->buffer_size;/* blocksize preferred for i/o */
/* time of last modification */
- ncp_dos2unixtime(fi->modifyDate, fi->modifyTime, 0, &va->va_mtime);
+ ncp_dos2unixtime(fi->modifyDate, fi->modifyTime, 0, nmp->m.tz, &va->va_mtime);
/* time of last access */
- ncp_dos2unixtime(fi->lastAccessDate, 0, 0, &va->va_atime);
+ ncp_dos2unixtime(fi->lastAccessDate, 0, 0, nmp->m.tz, &va->va_atime);
va->va_ctime = va->va_mtime; /* time file changed */
va->va_gen = VNOVAL; /* generation number of file */
va->va_flags = 0; /* flags defined for file */
OpenPOWER on IntegriCloud