[Top][All Lists]

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

[Qemu-devel] [Bug 1835839] Re: qemu-user: $0 incorrectly always reports

From: Peter Maydell
Subject: [Qemu-devel] [Bug 1835839] Re: qemu-user: $0 incorrectly always reports absolute path
Date: Tue, 09 Jul 2019 12:16:05 -0000

Is the proposed patch backwards compatible (ie "old QEMU binary works
with newer binfmt-misc registration" and "new QEMU binary works with
older binfmt-misc registration") ? Because binfmt-misc stuff is whole-
system but QEMU binaries are per-chroot, this kind of thing is awkward
to change if we don't have back-compat (and typically the kernel
semantics for these things often don't allow back-compat or any kind of
migration-path to the new better setup :-( )

You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

  qemu-user: $0 incorrectly always reports absolute path

Status in QEMU:

Bug description:
  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

  A simple reproducer is this:

  On normal system (no emulation):

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

  On qemu-user:

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

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

To manage notifications about this bug go to:

reply via email to

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