Date: Wed, 4 Jan 2006 20:30:31 GMT From: "J.R. Oldroyd" <fbsd@opal.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/91316: pax -pe does not preserve times on symlinks Message-ID: <200601042030.k04KUVrh061540@www.freebsd.org> Resent-Message-ID: <200601042040.k04Ke4rH042214@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601042030.k04KUVrh061540>
