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

[Windows] server-ensure-safe-dir: The directory `~/.emacs.d/server' is unsafe #1587

Closed
syl20bnr opened this issue Nov 3, 2014 · 3 comments
Closed
Labels
support User needs some help
Milestone

Comments

@syl20bnr
Copy link

syl20bnr commented Nov 3, 2014

This error is triggers when c c in magit status buffer to make a commit.

@tarsius tarsius added the support User needs some help label Nov 3, 2014
@tarsius tarsius added this to the 2.1.0 milestone Nov 3, 2014
@tarsius
Copy link
Member

tarsius commented Nov 3, 2014

This function asserts that value of server-dir is a safe directory. The doc-string of the function documents what is not safe:

Make sure DIR is a directory with no race-condition issues.
Creates the directory if necessary and makes sure:
- there's no symlink involved
- it's owned by us
- it's not readable/writable by anybody else.

Magit does not change the value of this variable. I think that for most Windows users the default value for this variable happens to be a safe directory. From a quick look at the functions definition it seems this also depend on the filesystem the directory lives on. Your system differs and so you have to change the value of the variable to something else.

@tarsius tarsius closed this as completed Nov 3, 2014
@tarsius
Copy link
Member

tarsius commented Nov 3, 2014

Somehow @syl20bnr follow up to this ended up on the wrong issue.

Thank you @tarsius and sorry to post this here since it is not related whatsoever to magit. This is a known bug on Windows and there are several work arounds listed is SO here: http://stackoverflow.com/questions/885793/emacs-error-when-calling-server-start

Once again thank you for your answer.

@syl20bnr
Copy link
Author

syl20bnr commented Nov 3, 2014

wow, indeed I commented on 1585... well sorry about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support User needs some help
Development

No branches or pull requests

2 participants