[Bug 235330] install: relative symlink bug
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jan 30 19:50:02 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235330
Bug ID: 235330
Summary: install: relative symlink bug
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: mat at FreeBSD.org
Flags: mfc-stable11?, mfc-stable12?
$ mkdir /tmp/lib/ /tmp/libexec
$ touch /tmp/lib/foo.so
$ install -lrs /tmp/lib/foo.so /tmp/libexec/
$ ls -l /tmp/libexec
total 1
lrwxr-xr-x 1 mat wheel 9 30 janv. 20:34 foo.so -> ../foo.so
This only happens with absolute paths, and only, from what I undestand with a
bit of testing, if the first path matches the second. As in "/tmp/lib" is
present in "/tmp/libexec", so, hey, they must be the same, so stop here, but
"/tmp/libexec" is not in "/tmp/lib" so add a "../"
install -lrs is used quite a lot in the ports tree, and this bug broke at least
a port.
Also, an EN would be nice once this is fixed and merged to the different stable
branches.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list