aboutsummaryrefslogtreecommitdiff
path: root/sbin/dump
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2002-07-17 02:03:19 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2002-07-17 02:03:19 +0000
commitfb36a3d8472e3b7c446b5501635ec34eb1ebaa00 (patch)
tree5b5d1d91499a541486f56f84b49c10edeafd66b2 /sbin/dump
parenta1dc2096387101165d53fe98677d3e4e1d0557ad (diff)
downloadsrc-fb36a3d8472e3b7c446b5501635ec34eb1ebaa00.tar.gz
src-fb36a3d8472e3b7c446b5501635ec34eb1ebaa00.zip
Change utimes to set the file creation time (for filesystems that
support creation times such as UFS2) to the value of the modification time if the value of the modification time is older than the current creation time. See utimes(2) for further details. Sponsored by: DARPA & NAI Labs.
Notes
Notes: svn path=/head/; revision=100207
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/traverse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index 733ac265c0ec..4cbce6ecfc69 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -407,8 +407,8 @@ dumpino(union dinode *dp, ino_t ino)
spcl.c_atimensec = dp->dp1.di_atimensec;
spcl.c_mtime = _time32_to_time(dp->dp1.di_mtime);
spcl.c_mtimensec = dp->dp1.di_mtimensec;
- spcl.c_createtime = 0;
- spcl.c_createtimensec = 0;
+ spcl.c_birthtime = 0;
+ spcl.c_birthtimensec = 0;
spcl.c_rdev = dp->dp1.di_rdev;
spcl.c_file_flags = dp->dp1.di_flags;
spcl.c_uid = dp->dp1.di_uid;
@@ -420,8 +420,8 @@ dumpino(union dinode *dp, ino_t ino)
spcl.c_atimensec = dp->dp2.di_atimensec;
spcl.c_mtime = _time64_to_time(dp->dp2.di_mtime);
spcl.c_mtimensec = dp->dp2.di_mtimensec;
- spcl.c_createtime = _time64_to_time(dp->dp2.di_createtime);
- spcl.c_createtimensec = dp->dp2.di_creatensec;
+ spcl.c_birthtime = _time64_to_time(dp->dp2.di_birthtime);
+ spcl.c_birthtimensec = dp->dp2.di_birthnsec;
spcl.c_rdev = dp->dp2.di_rdev;
spcl.c_file_flags = dp->dp2.di_flags;
spcl.c_uid = dp->dp2.di_uid;