summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-08-08 20:56:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-08-08 20:56:29 +0000
commit4c71be32916ef366fd3b09ee4bb853100934d643 (patch)
treee50c83e50527e6e1cb8744801aad2782d9c479f5
parentefd42998de4ec5389afc347aa2ba146cd8a1ab04 (diff)
fix atime and mtime commands; ms@xy.org
-rw-r--r--sbin/fsdb/fsdb.c6
1 files 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();