aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1998-12-03 02:18:31 +0000
committerJulian Elischer <julian@FreeBSD.org>1998-12-03 02:18:31 +0000
commitf2c50282aa37e493b4bef061ce435324681632dd (patch)
tree9431ee451880a77ae7f4487b69b65249f67ae087
parent927eee5e0e336c13e9dddfc40c52626cf138646e (diff)
downloadsrc-vendor/CSRG.tar.gz
src-vendor/CSRG.zip
Work out that there are a few slight improvements to import as well.vendor/CSRG
Notes
Notes: svn path=/vendor/CSRG/dist/; revision=41472
-rw-r--r--sbin/fsck/Makefile3
-rw-r--r--sbin/fsck/inode.c5
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fsck/Makefile b/sbin/fsck/Makefile
index 694a48f1e147..3155b1a466ea 100644
--- a/sbin/fsck/Makefile
+++ b/sbin/fsck/Makefile
@@ -1,9 +1,10 @@
# @(#)Makefile 8.2 (Berkeley) 4/27/95
PROG= fsck
-MAN8= fsck.0
+MAN8= fsck.8
SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c
CFLAGS+=-W
+.PATH: ${.CURDIR}/../../sys/ufs/ffs
.include <bsd.prog.mk>
diff --git a/sbin/fsck/inode.c b/sbin/fsck/inode.c
index 35840370ca6a..a54f2ce3d265 100644
--- a/sbin/fsck/inode.c
+++ b/sbin/fsck/inode.c
@@ -544,7 +544,7 @@ pinode(ino)
if (preen)
printf("%s: ", cdevname);
printf("SIZE=%qu ", dp->di_size);
- t = dp->di_mtime.tv_sec;
+ t = dp->di_mtime;
p = ctime(&t);
printf("MTIME=%12.12s %4.4s ", &p[4], &p[20]);
}
@@ -627,8 +627,7 @@ allocino(request, type)
}
dp->di_mode = type;
dp->di_flags = 0;
- dp->di_atime.tv_sec = time(NULL);
- dp->di_atime.tv_nsec = 0;
+ dp->di_atime = time(NULL);
dp->di_mtime = dp->di_ctime = dp->di_atime;
dp->di_size = sblock.fs_fsize;
dp->di_blocks = btodb(sblock.fs_fsize);