From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.bugs Subject: bug#865: 23.0.60; The directory is unsafe today Date: Fri, 05 Sep 2008 10:23:27 -0400 Message-ID: References: <48BD642C.5050405@gmail.com> <48BD74D5.4050800@gnu.org> <48BDD155.8060005@gnu.org> <48BF2171.8040101@gnu.org> <48C0654B.2010007@gnu.org> Reply-To: Francis Litterio , 865@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220627278 2979 80.91.229.12 (5 Sep 2008 15:07:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2008 15:07:58 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 05 17:08:52 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 1KbcvV-0001To-57 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 17:08:45 +0200 Original-Received: from localhost ([127.0.0.1]:39314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbcuV-0004FE-1W for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 11:07:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbcuQ-0004Ez-Ko for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 11:07:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbcuO-0004EY-U2 for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 11:07:38 -0400 Original-Received: from [199.232.76.173] (port=57418 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbcuO-0004EV-Lv for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 11:07:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38299) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbcuN-0002x4-4B for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 11:07:36 -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 m85F7VQT011356; Fri, 5 Sep 2008 08:07:31 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m85Eo3Li004387; Fri, 5 Sep 2008 07:50:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Francis Litterio Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Sep 2008 14:50: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.12206256181640 (code B ref -1); Fri, 05 Sep 2008 14:50:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Sep 2008 14:40:18 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m85EeFU1001584 for ; Fri, 5 Sep 2008 07:40:16 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbcTu-0004wl-NS for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 10:40:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbcTt-0004vU-PX for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 10:40:14 -0400 Original-Received: from [199.232.76.173] (port=33164 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbcTs-0004vJ-V3 for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 10:40:13 -0400 Original-Received: from pcls6.std.com ([192.74.137.146]:51731 helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbcTt-00036K-9E for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 10:40:13 -0400 Original-Received: from usenlittefl1c.theworld.com (IDENT:105@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.13.6/8.13.6) with ESMTP id m85EcbnM007553 for ; Fri, 5 Sep 2008 10:38:39 -0400 X-Random-Quote: Don't let it end like this. Tell them I said something. -- Pancho Villa (1877 - 1923), last words In-Reply-To: (Eli Zaretskii's message of "Fri, 05 Sep 2008 13:32:12 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 05 Sep 2008 11:07:38 -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:20199 Archived-At: Eli Zaretskii wrote: >> From: Jason Rumney >> Under Windows, where the owner can be a group, if the current user is a >> member of the group that owns a file, then they effectively own that >> file, and Emacs should report that to avoid problems with Lisp code that >> is trying to test ownership. > > How about solving this the other way around: if the current user is a > member of the Administators group, Emacs on Windows will return that > group's ID (544) as user-uid of such a user? If this solution is implemented, keep in mind that there is a Group Policy setting called "System objects: default owner for objects created by members of Administrators group" which can be set to either "Administrators group" or "Object creator". If it is set to the latter value, then newly-created files are owned by the user not the group. And on a domain-based machine, this can be a domain policy that can't be changed even by a member of the machine's Local Administrators group. -- Fran