Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 28 Jan 2018 01:54:25 +0100
From: Szabolcs Nagy <>
To: Stefan Fröberg <>
Subject: Re: BUG: $ORIGIN does not seem to work

* Stefan Fröberg <> [2018-01-28 00:07:33 +0200]:
> strace ./x
> open("/root/batman/lib/", O_RDONLY|O_CLOEXEC) = 3
> ldd x
>     /lib/ (0x7f22efa03000)
> => /usr/lib/ (0x7f22ef352000)
> => /lib/ (0x7f22efa03000)

this is a bug in musl ldd: if the executable
path has no / then it assumes origin is /, try

ldd ./x

then origin is ./ so it works as expected.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.