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

Prioritize PATH executables over local directories in terminals #158666

Merged
merged 4 commits into from
Sep 15, 2022
Merged

Prioritize PATH executables over local directories in terminals #158666

merged 4 commits into from
Sep 15, 2022

Commits on Aug 20, 2022

  1. Prioritize PATH executables over local directories

    Right now, when validating an executable, the check to ensure the path
    is a file and not a directory comes before the check for executables in
    PATH. This means that a sub directory of the current process's PWD will
    take priority over an executable in PATH, and so an error will be given
    saying that the specified path "is not a file or a symlink", even if
    there is a valid executable in PATH which was intended to be executed.
    
    This fix reorders the checks to ensure that the executable in PATH takes
    priority over a sub directory of the local PWD.
    tobil4sk committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    b757ff1 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2022

  1. Configuration menu
    Copy the full SHA
    fb7039f View commit details
    Browse the repository at this point in the history
  2. Remove unneeded !

    Tyriar committed Sep 15, 2022
    Configuration menu
    Copy the full SHA
    5448381 View commit details
    Browse the repository at this point in the history
  3. Handle EACCES

    Tyriar committed Sep 15, 2022
    Configuration menu
    Copy the full SHA
    5d7a0e3 View commit details
    Browse the repository at this point in the history