From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: ensure safe directory failing Date: Sat, 19 Mar 2011 19:47:10 +0200 Message-ID: <83r5a39f4x.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1300556916 15790 80.91.229.12 (19 Mar 2011 17:48:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2011 17:48:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 19 18:48:33 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q10GO-00006Q-A3 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 18:48:32 +0100 Original-Received: from localhost ([127.0.0.1]:59152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q10GN-0005Gl-Tl for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Mar 2011 13:48:31 -0400 Original-Received: from [140.186.70.92] (port=58081 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q10G1-0005GS-Gu for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 13:48:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q10Fz-0007ug-Sq for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 13:48:09 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:53875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q10Fz-0007uc-G3 for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 13:48:07 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LIB00C00FY6RZ00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 19:47:06 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.131.120]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LIB00CIBG2GDRA0@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sat, 19 Mar 2011 19:47:06 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80281 Archived-At: > Date: Sat, 19 Mar 2011 12:39:54 -0500 > From: "B. T. Raven" > > > --- 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)) > > :warning) > > (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)) > > > > > > I think so. I don't have or don't understand the source code maintenance > tools If you have a ported patch.exe, I can tell you the exact command to invoke it, after you save the patch to a file. > if I just delete lines 474-477 and add those starting with: > (unless (or (= uid (user-uid)) ; is the dir ours? > it should accomplish the same thing. No. You should delete the line prefixed with "-" and then add all the lines prefixed with "+". Then byte-compile the modified server.el, restart Emacs, and see if the problem is gone.