From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 4 20:40:05 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 E50B316A41F for ; Wed, 4 Jan 2006 20:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33C8243D5D for ; Wed, 4 Jan 2006 20:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k04Ke5gr042215 for ; Wed, 4 Jan 2006 20:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k04Ke4rH042214; Wed, 4 Jan 2006 20:40:05 GMT (envelope-from gnats) Resent-Date: Wed, 4 Jan 2006 20:40:05 GMT Resent-Message-Id: <200601042040.k04Ke4rH042214@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, "J.R. Oldroyd" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C973F16A41F for ; Wed, 4 Jan 2006 20:30:31 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A43343D45 for ; Wed, 4 Jan 2006 20:30:31 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k04KUV2G061541 for ; Wed, 4 Jan 2006 20:30:31 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k04KUVrh061540; Wed, 4 Jan 2006 20:30:31 GMT (envelope-from nobody) Message-Id: <200601042030.k04KUVrh061540@www.freebsd.org> Date: Wed, 4 Jan 2006 20:30:31 GMT From: "J.R. Oldroyd" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: bin/91316: pax -pe does not preserve times on symlinks 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: Wed, 04 Jan 2006 20:40:06 -0000 >Number: 91316 >Category: bin >Synopsis: pax -pe does not preserve times on symlinks >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 04 20:40:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: J.R. Oldroyd >Release: 6.0 and 7.0 >Organization: >Environment: FreeBSD linwhf.opal.com 6.0-STABLE FreeBSD 6.0-STABLE #0: Wed Nov 9 11:17:26 EST 2005 xx@linwhf.opal.com:/usr/obj/usr/src-current/sys/LINWHF i386 >Description: Use of the pax -pe option is supposed to "`Preserve everything', the user ID, group ID, file mode bits, file access time, and file modification time." however this is not honored for symlinks that are copied. >How-To-Repeat: mkdir /tmp/x pax -rw -pe /path/to/a/symlink /tmp/x ls -l /path/to/a/symlink /tmp/x/path/to/a/symlink >Fix: I suspect that when a symlink is copied, pax needs to check for this and use lutimes() instead of utimes() to preserve the original times. Don't have a patch, though. >Release-Note: >Audit-Trail: >Unformatted: