diff options
author | chris <chris@FreeBSD.org> | 1999-12-21 06:29:00 +0000 |
---|---|---|
committer | chris <chris@FreeBSD.org> | 1999-12-21 06:29:00 +0000 |
commit | 220d3c3bf11ba5fdff20ba3c811021b14eff84f0 (patch) | |
tree | ad2834097f577e0d2015bc0e688ea3e320121437 /sys/miscfs | |
parent | 90b4d2da64542d74102020f958fb8a30f021f959 (diff) | |
download | FreeBSD-src-220d3c3bf11ba5fdff20ba3c811021b14eff84f0.zip FreeBSD-src-220d3c3bf11ba5fdff20ba3c811021b14eff84f0.tar.gz |
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
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/kernfs/kernfs_vnops.c | 2 | ||||
-rw-r--r-- | sys/miscfs/portal/portal_vnops.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/kernfs/kernfs_vnops.c b/sys/miscfs/kernfs/kernfs_vnops.c index bb33560..f457541 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 f158ead..d4146da 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; |