FS#73651 - [filesystem] 2021.12.07-1: incorrect PATH setting
Attached to Project:
Arch Linux
Opened by Matthew T. Hoare (Head_on_a_Stick) - Sunday, 06 February 2022, 16:14 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 06 February 2022, 17:39 GMT
Opened by Matthew T. Hoare (Head_on_a_Stick) - Sunday, 06 February 2022, 16:14 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 06 February 2022, 17:39 GMT
|
Details
The filesystem-2021.12.07-1 package supplies /etc/profile
that uses an append_path function to add /usr/local/{s,}bin
to PATH but those directories should appear before
{,/usr}/{s,}bin to allow users to shadow applications in
those directories with their own versions.
Steps to reproduce: touch /usr{,/local}/bin/bug_example chmod +x /usr{,/local}/bin/bug_example type bug_example # shows /usr/bin/bug_example rm /usr{,/local}/bin/bug_example |
This task depends upon
Closed by Antonio Rojas (arojas)
Sunday, 06 February 2022, 17:39 GMT
Reason for closing: Not a bug
Additional comments about closing: The paths are added in the correct order
Sunday, 06 February 2022, 17:39 GMT
Reason for closing: Not a bug
Additional comments about closing: The paths are added in the correct order
Comment by Doug Newgard (Scimmia) -
Sunday, 06 February 2022, 16:32 GMT
They *do* appear before /usr/bin (the only one that exists in
Arch). See line 20. You've got something else going on.