]> git.proxmox.com Git - qemu.git/commit - linux-user/syscall.c
linux-user: handle /proc/$$ like /proc/self
authorAndreas Schwab <schwab@suse.de>
Tue, 2 Jul 2013 13:04:12 +0000 (14:04 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 5 Jul 2013 12:45:40 +0000 (15:45 +0300)
commit463d8e7393681b300946d6bf9f9d5b7035d718c6
treebceafbfd3b61dad838e7e2332c40a8ffe3eb3713
parentab8bf29078e0ab8347e2ff8b4e5542f7a0c751cf
linux-user: handle /proc/$$ like /proc/self

Some applications use /proc/$$/... (where $$ is the own pid) instead of
/proc/self/... to refer to their own proc files.  Extend the interception
for open and readlink to handle this case.  Also, do the same interception
in readlinkat.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/syscall.c