> This sounds like something that would really benefit from an autopkgtest! 
> Please could you bundle one with your fix?

I agree! There is one already in the fakeroot package actually under
debian/tests/id:

```
#!/bin/sh

real_id=$(id -u)
fake_id=$(fakeroot id -u)

case "${real_id}:${fake_id}" in
  (0:0)
  echo >&2 "test run under root: failure"
  exit 1
  ;;
  (*:0)
  echo "id: OK"
  ;;
  (*)
  echo >&2 "unexpected result (${real_id}:${fake_id}): failure"
  exit 2
  ;;
esac
```

I'm not sure it fits under the rust-coreutils package as fakeroot makes
use of the LD_PRELOAD function interposition with libc. Upstream
mentioned that they most likely won't support this due to using musl
libc, so my current fix has minimally reverted that upstream change
temporarily until we can come up with something nicer.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2160614

Title:
  id: fakeroot does not fake root (regression: 0.8.0 -> 0.9.0)

To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2160614/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to