bin/91316: pax -pe does not preserve times on symlinks
J.R. Oldroyd
fbsd at opal.com
Wed Jan 4 12:40:06 PST 2006
>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 at 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:
More information about the freebsd-bugs
mailing list