summary refs log tree commit diff stats
path: root/results/classifier/zero-shot-user-mode/instruction/1835839
blob: 6d3026e4bd07b9603de272037e993dff2b94327b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
instruction: 0.629
runtime: 0.285
syscall: 0.087



qemu-user: $0 incorrectly always reports absolute path

We just ran into an issue with the Perl package on Debian/m68k when being built with qemu-user [1].

The problem can be boiled down to qemu-user always reporting absolute paths for the shell variable $0 no matter on how the command was invoked.

A simple reproducer is this:

On normal system (no emulation):

root@nofan:~> sh -c 'echo $0'
sh
root@nofan:~>

On qemu-user:

(sid-m68k-sbuild)root@nofan:/# sh -c 'echo $0'
/bin/sh
(sid-m68k-sbuild)root@nofan:/#

> [1] https://lists.debian.org/debian-68k/2019/07/msg00007.html