Subject: bug#4197: 23.1; error when try to run `server-start': directory .emacs.d/server is unsafe

From: Eli Zaretskii <[email-masked]>
Date: Fri, 21 Aug 2009 12:24:39 +0300

merge 865 4197

> From: "Drew Adams" <[email-masked]>
> Date: Tue, 18 Aug 2009 20:25:25 -0700
> Cc: 
> 
> In the Emacs bin directory:
>  
> .\cmdproxy.exe
>  
> At the cmd prompt:
>  
> .\runemacs.exe -Q
>  
> In *scratch* buffer, eval this: (server-start)
>  
> Debugger entered--Lisp error: (error "The directory c:/.emacs.d/server is
> unsafe")
>   signal(error ("The directory c:/.emacs.d/server is unsafe"))
>   error("The directory %s is unsafe" "c:/.emacs.d/server")
>   server-ensure-safe-dir("c:/.emacs.d/server/")
>   server-start()
>   eval((server-start))
>   eval-last-sexp-1(nil)
>   eval-last-sexp(nil)
>   call-interactively(eval-last-sexp nil nil)

I think this is the same as bug #865; merged.

What do the following three expression evaluate to, in the Emacs session
that signals this error?

  (user-uid)

  (file-attributes "c:/.emacs.d/server/" 'integer)

  (file-attributes "c:/.emacs.d/server/" 'string)

Finally, does it help to set w32-get-true-file-attributes to nil?