Date: Mon, 21 Oct 2002 11:50:26 -0600 (MDT) From: Scott Wiersdorf <scott@perlcode.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/44343: [PATCH] sbin/fsdb.c Message-ID: <200210211750.g9LHoQW89330@deep.iserver.net>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210211750.g9LHoQW89330>
