From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: File Owner and Group ID on Windows Date: Thu, 21 Aug 2008 19:37:41 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1219337568 7602 80.91.229.12 (21 Aug 2008 16:52:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2008 16:52:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 21 18:53:40 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWDPm-0004Au-Nf for ged-emacs-devel@m.gmane.org; Thu, 21 Aug 2008 18:53:39 +0200 Original-Received: from localhost ([127.0.0.1]:50171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWDOn-0001nI-UW for ged-emacs-devel@m.gmane.org; Thu, 21 Aug 2008 12:52:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWDB9-00067x-4x for emacs-devel@gnu.org; Thu, 21 Aug 2008 12:38:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWDB6-00067C-Lq for emacs-devel@gnu.org; Thu, 21 Aug 2008 12:38:30 -0400 Original-Received: from [199.232.76.173] (port=33897 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWDB6-000675-I4 for emacs-devel@gnu.org; Thu, 21 Aug 2008 12:38:28 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:11218) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWDB6-0000HB-4B for emacs-devel@gnu.org; Thu, 21 Aug 2008 12:38:28 -0400 Original-Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K5Y00J6SM7MP8I1@i_mtaout4.012.net.il> for emacs-devel@gnu.org; Thu, 21 Aug 2008 19:38:11 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102784 Archived-At: > Date: Thu, 21 Aug 2008 16:14:51 +0200 > From: "Juanma Barranquero" > Cc: emacs-devel@gnu.org > > get_token_information (...) => 0 > GetLastError () => 998 (ERROR_NOACCESS) And what about the similar code in w32_system_process_attributes? does it work for the Emacs process? If it does, perhaps we need to open the current process the same way we do there, and ask for PROCESS_QUERY_INFORMATION and PROCESS_VM_READ types of access. Can you check that? Also, do you know if this ever worked for you? I don't think this code was changed since May. Finally, what kind of a machine is this failing on? is it a standalone workstation or a machine behind a domain server?