From 01dca7b577db2d7f1356bd6a93328b47a734625b Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 21 Dec 1999 06:29:00 +0000 Subject: [PATCH] Fix a typo that was doing something kind of silly, and that is initializing the creation time for files to the uninitialized value: vap->va_ctime = vap->va_ctime; Changed to what was intended, assigning it to the modification time (thus making all three values of access time, modification time and creation time the same thing). Reviewed by: grog --- sys/fs/portalfs/portal_vnops.c | 2 +- sys/miscfs/kernfs/kernfs_vnops.c | 2 +- sys/miscfs/portal/portal_vnops.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c index f158eadffd07..d4146da6a833 100644 --- a/sys/fs/portalfs/portal_vnops.c +++ b/sys/fs/portalfs/portal_vnops.c @@ -453,7 +453,7 @@ portal_getattr(ap) vap->va_blocksize = DEV_BSIZE; nanotime(&vap->va_atime); vap->va_mtime = vap->va_atime; - vap->va_ctime = vap->va_ctime; + vap->va_ctime = vap->va_mtime; vap->va_gen = 0; vap->va_flags = 0; vap->va_rdev = 0; diff --git a/sys/miscfs/kernfs/kernfs_vnops.c b/sys/miscfs/kernfs/kernfs_vnops.c index bb3356095e53..f457541f9450 100644 --- a/sys/miscfs/kernfs/kernfs_vnops.c +++ b/sys/miscfs/kernfs/kernfs_vnops.c @@ -365,7 +365,7 @@ kernfs_getattr(ap) vap->va_blocksize = DEV_BSIZE; nanotime(&vap->va_atime); vap->va_mtime = vap->va_atime; - vap->va_ctime = vap->va_ctime; + vap->va_ctime = vap->va_mtime; vap->va_gen = 0; vap->va_flags = 0; vap->va_rdev = 0; diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c index f158eadffd07..d4146da6a833 100644 --- a/sys/miscfs/portal/portal_vnops.c +++ b/sys/miscfs/portal/portal_vnops.c @@ -453,7 +453,7 @@ portal_getattr(ap) vap->va_blocksize = DEV_BSIZE; nanotime(&vap->va_atime); vap->va_mtime = vap->va_atime; - vap->va_ctime = vap->va_ctime; + vap->va_ctime = vap->va_mtime; vap->va_gen = 0; vap->va_flags = 0; vap->va_rdev = 0;