Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] PATH order shadows user bin directories #1145

Closed
mpreu opened this issue Jan 8, 2024 · 0 comments
Closed

[Error] PATH order shadows user bin directories #1145

mpreu opened this issue Jan 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mpreu
Copy link

mpreu commented Jan 8, 2024

Describe the bug
When entering, some standard paths are prepended to $PATH unconditionally. This results in duplicated entries and shadows e.g. ~/bin and ~/.local/bin. Binaries placed in this directories are now shadowed by whatever the container image contains instead.

This behavior seems to be a result of #918.

To Reproduce
Enter any box and check $PATH.

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/bin:/home/<user>/.local/bin:/home/<user>/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin

See, that paths are duplicated and now local user bin directories are shadowed in contrast to the host default PATH configuration.

Expected behavior
Just the default of the system:

/home/<user>/.local/bin:/home/<user>/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod?
    • podman
  • Which version or podman, docker or lilipod?
    • 4.8.2
  • Which version of distrobox?
    • 1.6.0.1
  • Which host distribution?
    • Fedora Silverblue 39
  • How did you install distrobox?
    • rpm-ostree overlay
@mpreu mpreu added the bug Something isn't working label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant