]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/main.c
bsd-user: Add '-0 argv0' option to bsd-user/main.c
authorColin Percival <cperciva@tarsnap.com>
Sat, 7 Aug 2021 20:34:21 +0000 (14:34 -0600)
committerWarner Losh <imp@bsdimp.com>
Fri, 10 Sep 2021 20:13:06 +0000 (14:13 -0600)
commitb8012648b38274aa996f1477c422a79e2d44110b
treea02def877fc4d15d5afef2b194b9f02a5474c6a3
parent63cca1067ac70df2d71c0064f7bf53e19334223c
bsd-user: Add '-0 argv0' option to bsd-user/main.c

Previously it was impossible to emulate a program with a file name
different from its argv[0].  With this change, you can run
    qemu -0 fakename realname args
which runs the program "realname" with an argv of "fakename args".

Signed-off-by: Colin Percival <cperciva@tarsnap.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/main.c