qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] linux-user: identify running binary in /proc/se


From: Paul Brook
Subject: Re: [Qemu-devel] [PATCH] linux-user: identify running binary in /proc/self/exe
Date: Mon, 19 Jan 2009 15:57:26 +0000
User-agent: KMail/1.9.9

On Monday 19 January 2009, Riku Voipio wrote:
> Some applications like to test /proc/self/exe to find
> out who they are. Fake the result of readlink() for
> them.

> +    exec_path = argv[optind];

Won't this give the wrong answer when the binary is invoked using a relative 
path or a symlink? On my system /proc/self/exe is always an absolute path to 
an actual file.

Paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]