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

bug fix in extension hard-disabling/enabling in mush #37

Merged
merged 1 commit into from
May 7, 2023

Conversation

tuocan
Copy link
Contributor

@tuocan tuocan commented May 7, 2023

fixes two things:

  1. verifies the variable extid is actually an extension ID
  2. makes sure typing an invalid input doesnt remove your perms for your user's entire extension folder (since there was no check on the extid variable, it would run chmod 000 on "/home/chronos/user/Extensions/$extid" even if $extid is unset, meaning the chmod command was run on the "/home/chronos/user/Extensions/" directory as a whole)

fixes two things:
1. verifies the variable `extid` is actually an extension ID
2. makes sure typing an invalid input doesnt remove your perms for your user's entire extension folder (since there was no check on the `extid` variable, it would run `chmod 000` on "/home/chronos/user/Extensions/$extid" even if $extid is unset, meaning the chmod command was run on the "/home/chronos/user/Extensions/" directory as a whole)
@tuocan tuocan changed the title bug fix in extension hard-disabling/enabling bug fix in extension hard-disabling/enabling in mush May 7, 2023
@velzie
Copy link
Member

velzie commented May 7, 2023

torcan

@velzie velzie merged commit cd5e3f7 into MercuryWorkshop:main May 7, 2023
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.

None yet

2 participants