[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ensure safe directory failing

From: Eli Zaretskii
Subject: Re: ensure safe directory failing
Date: Sat, 19 Mar 2011 17:00:13 +0200

> Date: Sat, 19 Mar 2011 07:44:33 -0500
> From: "B. T. Raven" <address@hidden>
> > Are you logged in as Administrator on that machine?
> Essentially yes. No password to logon. Up until ver. 23 (server-start)
> in .emacs worked with HOME=C:\emacs (i.e. everything at same level as
> emacs/bin). Under DocumentsandSettings the owners of all the folders
> seem to be Administrators, User, System and with all permissions
> checked.  The owner under c:\emacs was always Everyone and all
> permissions were checked.
> I read the entire thread at
> on this topic but I can't seem to make .emacs.d directory safe with any
> combo of users and/or permissions. This is on a desktop with win2000. On
> a laptop with xp and with home=c:\emacs it does work but all I see there
> is that the directory is read only (i.e. right click properties or
> Alt-Enter doesn't reveal anything about ownership).

Can you try the patch to server.el below?

--- lisp/server.el      2011-01-02 23:50:46 +0000
+++ lisp/server.el      2011-03-11 12:19:08 +0000
@@ -474,7 +474,13 @@ See variable `server-auth-dir' for detai
                              (file-name-as-directory dir))
                     (throw :safe t))
-                  (unless (eql uid (user-uid)) ; is the dir ours?
+                  (unless (or (= uid (user-uid)) ; is the dir ours?
+                              (and w32
+                                   ;; Files created on Windows by
+                                   ;; Administrator (RID=500) have
+                                   ;; the Administrators (RID=544)
+                                   ;; group recorded as the owner.
+                                   (= uid 544) (= (user-uid) 500)))
                     (throw :safe nil))
                   (when w32                    ; on NTFS?
                     (throw :safe t))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]