From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#865: 23.0.60; The directory is unsafe today Date: Tue, 02 Sep 2008 22:19:15 +0300 Message-ID: References: <48BD642C.5050405@gmail.com> <48BD74D5.4050800@gnu.org> Reply-To: Eli Zaretskii , 865@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1220383671 27514 80.91.229.12 (2 Sep 2008 19:27:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2008 19:27:51 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Jason Rumney , 865@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 02 21:28:45 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KabYN-0008T3-PC for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2008 21:28:40 +0200 Original-Received: from localhost ([127.0.0.1]:42704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KabXO-0004xY-LX for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2008 15:27:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KabXK-0004xE-QR for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 15:27:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KabXK-0004wl-2Y for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 15:27:34 -0400 Original-Received: from [199.232.76.173] (port=44980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KabXJ-0004wc-MO for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 15:27:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49122) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KabXJ-0003tS-9a for bug-gnu-emacs@gnu.org; Tue, 02 Sep 2008 15:27:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82JRUmn029360; Tue, 2 Sep 2008 12:27:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m82JP5bL028034; Tue, 2 Sep 2008 12:25:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 02 Sep 2008 19:25:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 865 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122038316626200 (code B ref -1); Tue, 02 Sep 2008 19:25:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 2 Sep 2008 19:19:26 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m82JJMAm026191 for ; Tue, 2 Sep 2008 12:19:23 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:59324 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KabNp-0000Ko-21 for emacs-pretest-bug@gnu.org; Tue, 02 Sep 2008 15:17:45 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KabPK-0000ry-0w for emacs-pretest-bug@gnu.org; Tue, 02 Sep 2008 15:19:22 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]:14257) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KabPJ-0000rU-BL; Tue, 02 Sep 2008 15:19:17 -0400 Original-Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K6L00NWO1P810X0@i_mtaout3.012.net.il>; Tue, 02 Sep 2008 22:19:56 +0300 (IDT) In-reply-to: <48BD74D5.4050800@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 02 Sep 2008 15:27:34 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20034 gmane.emacs.pretest.bugs:22943 Archived-At: > Date: Wed, 03 Sep 2008 01:16:05 +0800 > From: Jason Rumney > Cc: emacs-pretest-bug@gnu.org > > Lennart Borgman (gmail) wrote: > > drwxrwxrwx 1 Administrators Domain Users 0 03-07 11:14 server > > > > The part that where server-unsure-safe-dir barks is > > > > (eql (nth 2 attrs) (user-uid)) > > > > This check is maybe something that should be skipped on w32? As you can > > see from the dired output above it will get "Domain Users" in my case. > > > > I think it will get "Administrators" in fact Yes, because `nth's argument counts from zero. > Eli, is it possible to tell the difference between an individual user > and a group when we get the owner from the system? If you mean to ask whether LookupAccountSid we use to get the owner or group name by their SID can tell us if the name it returns is a group rather than a user, then no, I don't think so, unfortunately. AFAIK, Windows doesn't really know that itself, it stores the user and group names in the same place. In particular, no user can have a SID that is identical to a SID of some group. However, Administrators and Everyone have universally fixed RID values (544 and 0 respectively), so we could make special code for those two values on Windows (the offending function already makes exceptions for Windows anyway). We can also list all the groups to which the user belongs, and check if one of them is Administrators. Btw, I think erroring out if what server-ensure-safe-dir wants to see is not true is too draconian. It may be better to ask, at least an an optional behavior.