]> Savannah Git Hosting - gnulib.git/commit
relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
authorKO Myung-Hun <komh78@gmail.com>
Thu, 1 Dec 2016 10:52:44 +0000 (19:52 +0900)
committerPádraig Brady <P@draigBrady.com>
Thu, 1 Dec 2016 11:36:13 +0000 (11:36 +0000)
commit62fcb8261873feb5ccac56c3e8dae17c1752fce6
tree613f20ded9e957fe61d0234511ec170f630a3dd5
parent154912b518c6869ac1513da5acc685ec34723cfb
relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC

OS/2 kLIBC has a feature to rewrite some path components. For example,
'/@unixroot' is replaced with a value of $UNIXROOT if it is.

So prepending a drive letter to the path starting with '/' makes the
path starting with '/@unixroot' to 'x:/@unixroot' which is unexpected.

This will breaks the behavior of some programs depending on /@unixroot
prefix.

* lib/relocatable.c (relocate): Do not touch pathname if it is started
with '/@unixroot'.
ChangeLog
lib/relocatable.c