On Tue, Feb 18, 2014 at 06:07:32PM +0100, Daniel Cegiełka wrote:
> cc -shared fake.c -o fake
> LD_PRELOAD=./fake ksh
> 
> and type: whoami

Since when does LD_PRELOAD work with relative paths?

But, anyways, why bother with shared libraries and shit.
Try this, it's simpler:

$ whoami() { echo root; }
$ whoami
root

;)

Reply via email to