-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
File permissions break sudoedit #1343
Comments
There's a hook in
You can use |
Is there any way to make Emacs "smart" on this? I'm not sure what it'd look like exactly (I can't find where sudoedit changes any environment variables with light testing), but it might come in handy. |
We can have a more sophisticated hook - e.g. one that ignores certain files or runs additional predicate checks. It's easy to do, but I think it's going to be an overkill for most people. |
I figured as much -- I was scratching my head trying to figure out the predicate checks to make. Not sure if just checking whether the owner of the file is root is enough... but like you say, it's probably overkill. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
I am running Prelude (emacs 27.2) on Arch Linux. It seems that when editing a file that looks like a bash script, something will automatically set +x on that file upon saving. Unfortunately that breaks sudoedit :
Steps to reproduce:
How can I disable this behaviour? Thanks.
The text was updated successfully, but these errors were encountered: