From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#865: 23.0.60; The directory is unsafe today Date: Thu, 04 Sep 2008 07:44:49 +0800 Message-ID: <48BF2171.8040101@gnu.org> References: <48BD642C.5050405@gmail.com> <48BD74D5.4050800@gnu.org> <48BDD155.8060005@gnu.org> Reply-To: Jason Rumney , 865@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220486867 19770 80.91.229.12 (4 Sep 2008 00:07:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 00:07:47 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 865@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 02:08:42 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 1Kb2Ot-000351-6N for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 02:08:39 +0200 Original-Received: from localhost ([127.0.0.1]:47926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kb2Nt-0003Fw-Va for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 20:07:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kb2Nq-0003Fa-Df for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 20:07:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kb2Np-0003FO-OA for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 20:07:33 -0400 Original-Received: from [199.232.76.173] (port=57103 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kb2Np-0003FE-La for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 20:07:33 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59562) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kb2Np-0007hN-39 for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 20:07: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 m8407Vj3015995; Wed, 3 Sep 2008 17:07:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m84003pX012249; Wed, 3 Sep 2008 17:00:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Jason Rumney Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 00:00:03 +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.122048604210438 (code B ref -1); Thu, 04 Sep 2008 00:00:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Sep 2008 23:54:02 +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 m83NrwvD010383 for ; Wed, 3 Sep 2008 16:53:59 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:46888) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kb295-0001xd-8U for emacs-pretest-bug@gnu.org; Wed, 03 Sep 2008 19:52:19 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kb22h-0004yl-6T for emacs-pretest-bug@gnu.org; Wed, 03 Sep 2008 19:45:44 -0400 Original-Received: from mk-outboundfilter-4.mail.uk.tiscali.com ([212.74.114.32]:55788) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kb22d-0004xs-0X; Wed, 03 Sep 2008 19:45:39 -0400 Original-X-Trace: 131755805/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$F2S-INTERNET-ACCEPTED/None/124.82.236.150 X-SBRS: None X-RemoteIP: 124.82.236.150 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4AAKa+vkh8UuyW/2dsb2JhbAAIsEUIhxthAwh7 X-IronPort-AV: E=Sophos;i="4.32,320,1217804400"; d="scan'208";a="131755805" X-IP-Direction: OUT Original-Received: from unknown (HELO [172.16.0.17]) ([124.82.236.150]) by smtp.f2s.tiscali.co.uk with ESMTP; 04 Sep 2008 00:45:35 +0100 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 03 Sep 2008 20:07:33 -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:20111 gmane.emacs.pretest.bugs:22957 Archived-At: Eli Zaretskii wrote: > Sorry, I confused myself and thought about a different parameter. > > Yes, the last argument of LookupAccountSid does tell what type of > account is that. But I'm not sure that what you suggest is a good > strategy: the fact that the current user is a member of Administrators > does not yet mean we can report that user as the file's owner. > > How about testing the user's primary group in addition to UID? That > is, > > (or (eql (nth 2 attrs) (user-uid)) > (and (eq system-type 'windows-nt) (eql (nth 2 attrs) (user-gid))) > I am trying to find a solution that will work without Lisp coders needing to be aware of the strange situation on Windows that files can be owned by a group.