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: Wed, 03 Sep 2008 21:31:16 +0300 Message-ID: References: <48BD642C.5050405@gmail.com> <48BD74D5.4050800@gnu.org> <48BDD155.8060005@gnu.org> Reply-To: Eli Zaretskii , 865@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1220467670 21835 80.91.229.12 (3 Sep 2008 18:47:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 18:47:50 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: 865@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 03 20:48: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 1KaxPH-0006Q3-OP for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 20:48:44 +0200 Original-Received: from localhost ([127.0.0.1]:33369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaxOI-0001fS-FC for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 14:47:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaxOD-0001eu-AH for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 14:47:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaxOB-0001eT-Tv for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 14:47:37 -0400 Original-Received: from [199.232.76.173] (port=39624 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaxOB-0001eN-KR for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 14:47:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54891) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KaxOB-00050g-64 for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 14:47:35 -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 m83IlV94032191; Wed, 3 Sep 2008 11:47:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m83Ie54A029309; Wed, 3 Sep 2008 11:40:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 03 Sep 2008 18:40:04 +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.122046668727181 (code B ref -1); Wed, 03 Sep 2008 18:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Sep 2008 18:31:27 +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 m83IVMFs027170 for ; Wed, 3 Sep 2008 11:31:23 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:52860) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kax6t-00045p-LU for emacs-pretest-bug@gnu.org; Wed, 03 Sep 2008 14:29:43 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kax8P-0002FB-2K for emacs-pretest-bug@gnu.org; Wed, 03 Sep 2008 14:31:21 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:11310) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kax8O-0002F5-NU; Wed, 03 Sep 2008 14:31:16 -0400 Original-Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K6M00JPJU599Z21@i_mtaout4.012.net.il>; Wed, 03 Sep 2008 21:31:58 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 03 Sep 2008 14:47:37 -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:20104 gmane.emacs.pretest.bugs:22954 Archived-At: > Date: Wed, 03 Sep 2008 06:27:43 +0300 > From: Eli Zaretskii > Cc: emacs-pretest-bug@gnu.org, 865@emacsbugs.donarmstrong.com > > > There is a variable in get_name_and_id called `ignore', which seems to > > have the required information. > > Thanks. > > I never found any sufficiently clear documentation of the meaning of > that parameter. Its value seems almost random. If you can find an > explanation or give one, please do. 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))) (assuming we add a function user-gid)?