From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#865: 23.0.60; The directory is unsafe today Date: Thu, 04 Sep 2008 02:16:07 +0200 Message-ID: <48BF28C7.4040405@gmail.com> References: <48BD642C.5050405@gmail.com> <48BD74D5.4050800@gnu.org> <48BDD155.8060005@gnu.org> <48BF2171.8040101@gnu.org> Reply-To: "Lennart Borgman \(gmail\)" , 865@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220488120 22444 80.91.229.12 (4 Sep 2008 00:28:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 00:28:40 +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 Thu Sep 04 02:29:35 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 1Kb2j7-0007eP-P2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 02:29:34 +0200 Original-Received: from localhost ([127.0.0.1]:35928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kb2i8-0006wd-CI for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Sep 2008 20:28:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kb2hK-0006U1-Kl for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 20:27:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kb2hH-0006SH-VJ for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 20:27:41 -0400 Original-Received: from [199.232.76.173] (port=39042 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kb2hG-0006Rv-Te for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 20:27:38 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50985) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kb2hF-0001LJ-1a for bug-gnu-emacs@gnu.org; Wed, 03 Sep 2008 20:27:37 -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 m840RVnb022889; Wed, 3 Sep 2008 17:27:34 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m840P5gc021554; Wed, 3 Sep 2008 17:25:05 -0700 X-Loop: don@donarmstrong.com Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Sep 2008 00: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.122048739419351 (code B ref -1); Thu, 04 Sep 2008 00:25:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 4 Sep 2008 00:16:34 +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 m840GUmN019345 for ; Wed, 3 Sep 2008 17:16:32 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:48702 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kb2Ut-0003Ce-Ts for emacs-pretest-bug@gnu.org; Wed, 03 Sep 2008 20:14:52 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kb2WP-0000Rv-Nw for emacs-pretest-bug@gnu.org; Wed, 03 Sep 2008 20:16:30 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:47832) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kb2WI-0000R5-Gh; Wed, 03 Sep 2008 20:16:18 -0400 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:63161 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Kb2WH-0006xF-3K; Thu, 04 Sep 2008 02:16:17 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <48BF2171.8040101@gnu.org> X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080903-0, 2008-09-03), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1Kb2WH-0006xF-3K. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Kb2WH-0006xF-3K 34c5a41cfb5420b71a117a4719412278 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 03 Sep 2008 20:27:41 -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:20114 gmane.emacs.pretest.bugs:22959 Archived-At: Jason Rumney wrote: > 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. Then, since it at this times seems like we want to forget about ACL lists, then perhaps implementing a function for changing owner+group, like chown, would be best?