]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afs-attrs-cast-date-to-int-to-avoid-negative-dates-20020516
authorDerrick Brashear <shadow@dementia.org>
Thu, 16 May 2002 14:47:28 +0000 (14:47 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 16 May 2002 14:47:28 +0000 (14:47 +0000)
cheap hack to avoid negative date problem which occasionally plagues solaris

src/afs/VNOPS/afs_vnop_attrs.c

index 2d14805e42b914c2eea3dfb8c25f3a8c57b79cae..8b5a31576235163e8d9a12abbe96f67ba8abc4d3 100644 (file)
@@ -97,7 +97,7 @@ afs_CopyOutAttrs(avc, attrs)
     attrs->va_nlink = fakedir ? 100 : avc->m.LinkCount;
     attrs->va_size = fakedir ? 4096 : avc->m.Length;
     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
      * use of mtime as a dataversion #.  We take it mod 512K because
      * microseconds *must* be less than a million, and 512K is the biggest