mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
afs-attrs-cast-date-to-int-to-avoid-negative-dates-20020516
cheap hack to avoid negative date problem which occasionally plagues solaris
This commit is contained in:
parent
10486b5652
commit
c28c22cead
@ -97,7 +97,7 @@ afs_CopyOutAttrs(avc, attrs)
|
|||||||
attrs->va_nlink = fakedir ? 100 : avc->m.LinkCount;
|
attrs->va_nlink = fakedir ? 100 : avc->m.LinkCount;
|
||||||
attrs->va_size = fakedir ? 4096 : avc->m.Length;
|
attrs->va_size = fakedir ? 4096 : avc->m.Length;
|
||||||
attrs->va_atime.tv_sec = attrs->va_mtime.tv_sec = attrs->va_ctime.tv_sec =
|
attrs->va_atime.tv_sec = attrs->va_mtime.tv_sec = attrs->va_ctime.tv_sec =
|
||||||
fakedir ? 0 : avc->m.Date;
|
fakedir ? 0 : (int)avc->m.Date;
|
||||||
/* set microseconds to be dataversion # so that we approximate NFS-style
|
/* set microseconds to be dataversion # so that we approximate NFS-style
|
||||||
* use of mtime as a dataversion #. We take it mod 512K because
|
* use of mtime as a dataversion #. We take it mod 512K because
|
||||||
* microseconds *must* be less than a million, and 512K is the biggest
|
* microseconds *must* be less than a million, and 512K is the biggest
|
||||||
|
Loading…
Reference in New Issue
Block a user