[Top][All Lists]
[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: |
Riku Voipio |
Subject: |
Re: [Qemu-devel] [PATCH] linux-user: identify running binary in /proc/self/exe |
Date: |
Tue, 20 Jan 2009 18:01:04 +0200 |
User-agent: |
Mutt/1.5.11+cvs20060126 |
On Mon, Jan 19, 2009 at 03:57:26PM +0000, Paul Brook wrote:
> 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.
You are right. Fixed version attached.
--
"rm -rf" only sounds scary if you don't have backups
0002-linux-user-identify-running-binary-in-proc-self-ex.patch
Description: Text document