From owner-freebsd-bugs@FreeBSD.ORG Sun Nov 25 21:40:02 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 126DA16A41B for ; Sun, 25 Nov 2007 21:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E5FB613C4E8 for ; Sun, 25 Nov 2007 21:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lAPLe17R087774 for ; Sun, 25 Nov 2007 21:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lAPLe1WG087773; Sun, 25 Nov 2007 21:40:01 GMT (envelope-from gnats) Resent-Date: Sun, 25 Nov 2007 21:40:01 GMT Resent-Message-Id: <200711252140.lAPLe1WG087773@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joe Peterson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7DC516A41A for ; Sun, 25 Nov 2007 21:33:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id C389213C468 for ; Sun, 25 Nov 2007 21:33:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lAPLX56q062256 for ; Sun, 25 Nov 2007 21:33:05 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id lAPLX5iq062255; Sun, 25 Nov 2007 21:33:05 GMT (envelope-from nobody) Message-Id: <200711252133.lAPLX5iq062255@www.freebsd.org> Date: Sun, 25 Nov 2007 21:33:05 GMT From: Joe Peterson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/118249: moving a directory changes its mtime X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2007 21:40:02 -0000 >Number: 118249 >Category: misc >Synopsis: moving a directory changes its mtime >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: Sun Nov 25 21:40:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Joe Peterson >Release: 6.2 >Organization: >Environment: FreeBSD scorpius 6.2-RELEASE FreeBSD Gentoo 6.2-r3 #3: Thu Oct 25 13:00:32 MDT 2007 joe@scorpius:/usr/src/sys-6.2-r3/i386/compile/GENERIC i386 >Description: Moving a directory to a different directory changes its "mtime". This behavior seems odd compared with other "Unix" systems (tried on Mac OS X and Linux). Also, moving a file to a different directory does *not* change its mtime, making this behavior inconsistent. Also, it is not typically desirable to touch mtime simply by being moved, which loses track of the last time the dir's contents were actually changed. >How-To-Repeat: mkdir a b (check timestamps using stat or "ls -ld" and "ls -lcd") mv b a (check timestamps again) Both "a" and "b" will now have new mtime and ctime). It is expected that "a" will have a new mtime and ctime, but only the ctime on "b" should have changed. >Fix: >Release-Note: >Audit-Trail: >Unformatted: