From 4c71be32916ef366fd3b09ee4bb853100934d643 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 8 Aug 1998 20:56:29 +0000 Subject: fix atime and mtime commands; ms@xy.org --- sbin/fsdb/fsdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c index 98e010ac328..2eb0a0f524a 100644 --- a/sbin/fsdb/fsdb.c +++ b/sbin/fsdb/fsdb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsdb.c,v 1.4 1997/01/16 04:04:19 millert Exp $ */ +/* $OpenBSD: fsdb.c,v 1.5 1998/08/08 20:56:28 deraadt Exp $ */ /* $NetBSD: fsdb.c,v 1.7 1997/01/11 06:50:53 lukem Exp $ */ /*- @@ -874,7 +874,7 @@ badformat: CMDFUNCSTART(chmtime) { - if (dotime(argv[1], &curinode->di_ctime, &curinode->di_ctimensec)) + if (dotime(argv[1], &curinode->di_mtime, &curinode->di_mtimensec)) return 1; inodirty(); printactive(); @@ -883,7 +883,7 @@ CMDFUNCSTART(chmtime) CMDFUNCSTART(chatime) { - if (dotime(argv[1], &curinode->di_ctime, &curinode->di_ctimensec)) + if (dotime(argv[1], &curinode->di_atime, &curinode->di_atimensec)) return 1; inodirty(); printactive(); -- cgit v1.2.3