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

Set explicit path to setpath in makejar #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Set explicit path to setpath in makejar #11

wants to merge 1 commit into from

Conversation

jbuttery
Copy link

Fixes an issue where makejar will fail if "." (the current directory) is not in the user's $PATH.

I didn't clutter up the actual commit message with this paragraph, but just FYI: the rationale behind changing this to an explicit path reference (of "./") is that having the current directory in $PATH is a security concern, albeit a rare one. The idea is that if a malicious user can get an executable with a common name (for example, a shell script named "ls") into a common location (such as a user's home directory), then it's fairly likely that the target will eventually run that executable; removing "." from $PATH avoids this.

Fixes an issue where makejar will fail if "." (the current directory) is
not in the user's $PATH.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant