From owner-freebsd-bugs Mon Oct 21 11: 0: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E9A437B401 for ; Mon, 21 Oct 2002 11:00:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D59D643E3B for ; Mon, 21 Oct 2002 11:00:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9LI05x3035560 for ; Mon, 21 Oct 2002 11:00:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9LI05Hb035559; Mon, 21 Oct 2002 11:00:05 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5251A37B401 for ; Mon, 21 Oct 2002 10:50:27 -0700 (PDT) Received: from deep.iserver.net (deep.iserver.net [161.58.168.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCCF743E65 for ; Mon, 21 Oct 2002 10:50:26 -0700 (PDT) (envelope-from deep@deep.iserver.net) Received: (from deep@localhost) by deep.iserver.net (8.11.6/8.11.2) id g9LHoQW89330; Mon, 21 Oct 2002 11:50:26 -0600 (MDT) Message-Id: <200210211750.g9LHoQW89330@deep.iserver.net> Date: Mon, 21 Oct 2002 11:50:26 -0600 (MDT) From: Scott Wiersdorf Reply-To: Scott Wiersdorf To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/44343: [PATCH] sbin/fsdb.c Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44343 >Category: bin >Synopsis: [PATCH] sbin/fsdb.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 21 11:00:05 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Scott Wiersdorf >Release: FreeBSD 4.6-RELEASE i386 >Organization: none >Environment: System: FreeBSD tub.dmz.orem.verio.net 4.6-STABLE FreeBSD 4.6-STABLE #8: Tue Aug 6 15:57:33 MDT 2002 scottw@orem.verio.net:/usr/obj/usr/src/sys/TUB i386 >Description: fsdb has a bug that sets the ctime of an inode when atime or mtime are specified >How-To-Repeat: run fsdb fsdb (inum: 12345)> lookup foo.txt fsdb (inum: 12345)> mtime YYMMDDHHMMSS notice the ctime changed, but not the mtime >Fix: --- /usr/src/sbin/fsdb/fsdb.c.orig Wed Apr 24 12:09:49 2002 +++ /usr/src/sbin/fsdb/fsdb.c.fixed Wed Oct 16 11:08:20 2002 @@ -873,7 +873,7 @@ CMDFUNCSTART(chmtime) { - if (dotime(argv[1], &curinode->di_ctime)) + if (dotime(argv[1], &curinode->di_mtime)) return 1; inodirty(); printactive(0); @@ -882,7 +882,7 @@ CMDFUNCSTART(chatime) { - if (dotime(argv[1], &curinode->di_ctime)) + if (dotime(argv[1], &curinode->di_atime)) return 1; inodirty(); printactive(0); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message