From monnier@iro.umontreal.ca Sat Mar 29 15:55:35 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.1 required=4.0 tests=AWL,IMPRONONCABLE_1, MURPHY_DRUGS_REL8,MURPHY_WRONG_WORD1,MURPHY_WRONG_WORD2 autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Mar 2008 22:55:36 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2TMtWIt023551 for ; Sat, 29 Mar 2008 15:55:33 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhcGAKNl7kfO+LLN/2dsb2JhbACBWokHh2KWNA X-IronPort-AV: E=Sophos;i="4.25,576,1199682000"; d="scan'208";a="17138520" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 29 Mar 2008 18:55:26 -0400 Received: from pastel.home ([206.248.178.205]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id JZG70326 for ; Sat, 29 Mar 2008 18:55:26 -0400 Received: by pastel.home (Postfix, from userid 20848) id 66E187FDF; Sat, 29 Mar 2008 18:55:26 -0400 (EDT) Resent-Message-ID: Resent-To: submit@debbugs.gnu.org Resent-From: Stefan Monnier Resent-Date: Sat, 29 Mar 2008 18:55:26 -0400 X-Original-To: monnier@iro.umontreal.ca Received: from pinpin.iro.umontreal.ca (pinpin.iro.umontreal.ca [132.204.24.52]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 3EAEF2CFAA9 for ; Sat, 29 Mar 2008 18:09:57 -0400 (EDT) Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by pinpin.iro.umontreal.ca (Postfix) with ESMTP id 0F9413B8AA7 for ; Sat, 29 Mar 2008 18:09:50 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfjFF-0006qZ-PA for monnier@iro.umontreal.ca; Sat, 29 Mar 2008 18:09:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfjEj-0006l4-BT for emacs-devel@gnu.org; Sat, 29 Mar 2008 18:09:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfjEh-0006kL-Tl for emacs-devel@gnu.org; Sat, 29 Mar 2008 18:09:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfjEh-0006kC-FX for emacs-devel@gnu.org; Sat, 29 Mar 2008 18:09:15 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfjEh-0002gA-7n for emacs-devel@gnu.org; Sat, 29 Mar 2008 18:09:15 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JfjEh-0002CQ-2v for emacs-pretest-bug@gnu.org; Sat, 29 Mar 2008 18:09:15 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JfjEd-0002fT-Tk for emacs-pretest-bug@gnu.org; Sat, 29 Mar 2008 18:09:14 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JfjEd-0002eq-FZ for emacs-pretest-bug@gnu.org; Sat, 29 Mar 2008 18:09:11 -0400 Received: from c83-254-150-27.bredband.comhem.se ([83.254.150.27]:62553 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JfjEa-00015S-7o for emacs-pretest-bug@gnu.org; Sat, 29 Mar 2008 23:09:08 +0100 Message-ID: <47EEBE03.9030104@gmail.com> Date: Sat, 29 Mar 2008 23:09:07 +0100 From: "Lennart Borgman \(gmail\)" 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 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 080329-0, 2008-03-29), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.150.27 X-Scan-Result: No virus found in message 1JfjEa-00015S-7o. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JfjEa-00015S-7o fa52dfc46f0992f4618e8e047a006cff X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Cc: Subject: 23.0.60; uid problems on w32 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: , Sender: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org Errors-To: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.94, requis 5, BAYES_00 -2.60, RECEIVED_FROM_NOUNK 0.66, SPF_HELO_PASS -0.00) X-DIRO-MailScanner-From: emacs-devel-bounces+monnier=iro.umontreal.ca@gnu.org I have got at bug report from Thierry Daucourt through http://www.emacswiki.org/cgi-bin/wiki/EmacsW32 It looks like this could be a bug in Emacs. The crucial part of that bug report are the values investigated at the end of `server-ensure-safe-dir' where the user get the following for file-attributes and user-id: attrs (t 1 -14706 513 (18414 17797) (18414 17797) (18414 17797) 0 drwxrwxrwx nil 34842 (7173 . 33003)) nth 2 attrs **-14706** user id **50830** He also checked with Cygwin which gave other values than the two different above for the uid: $ ls -ld server/ drwxr-xr-x+ 2 my_user mkgroup-l-d 0 Mar 29 14:35 server/ $ id uid=**60830**(my_user) gid=10545(mkgroup-l-d) groups=0(root),544(Administrators),545(Users),10545(mkgroup-l-d) If I do not misunderstand him he has got these values from the unpatched version below. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-03-25 From jasonr@gnu.org Fri Apr 11 13:54:33 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=0.5 required=4.0 tests=AWL,MIXEDBDN,SPF_HELO_PASS autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 98-done) by emacsbugs.donarmstrong.com; 11 Apr 2008 20:54:33 +0000 Received: from mk-outboundfilter-5-a-2.mail.uk.tiscali.com (mk-outboundfilter-5-a-2.mail.uk.tiscali.com [212.74.114.4]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m3BKsTCR014417 for <98-done@emacsbugs.donarmstrong.com>; Fri, 11 Apr 2008 13:54:31 -0700 X-Trace: 4503212/mk-outboundfilter-5.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@gnu.org X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjoFAAJt/0dTQxds/2dsb2JhbACBXaoHgh4 X-IP-Direction: IN Received: from i-83-67-23-108.freedom2surf.net (HELO wanchan.jasonrumney.net) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP; 11 Apr 2008 21:54:24 +0100 Received: from [192.168.249.27] (chiko.jasonrumney.net [192.168.249.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 48B251C8 for <98-done@emacsbugs.donarmstrong.com>; Fri, 11 Apr 2008 21:54:28 +0100 (BST) Message-ID: <47FFCFEF.6040202@gnu.org> Date: Fri, 11 Apr 2008 21:54:07 +0100 From: Jason Rumney User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: 98-done@debbugs.gnu.org Subject: [Fwd: Re: 23.0.60; uid problems on w32] X-Enigmail-Version: 0.95.6 OpenPGP: id=8086879D Content-Type: multipart/mixed; boundary="------------070206030009040504020808" This is a multi-part message in MIME format. --------------070206030009040504020808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------070206030009040504020808 Content-Type: message/rfc822; name="Re: 23.0.60; uid problems on w32.eml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Re: 23.0.60; uid problems on w32.eml" Message-ID: <47F0F4FF.2070507@gnu.org> Date: Mon, 31 Mar 2008 15:28:15 +0100 From: Jason Rumney User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Eli Zaretskii CC: monnier@iro.umontreal.ca, emacs-pretest-bug@gnu.org, lennart.borgman@gmail.com Subject: Re: 23.0.60; uid problems on w32 References: <47EEBE03.9030104@gmail.com> <47EEE4D9.9090600@gnu.org> <47EF9D73.4000508@gnu.org> In-Reply-To: X-Enigmail-Version: 0.95.6 OpenPGP: id=8086879D Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: >> Eli Zaretskii wrote: >> >>> Actually, one (in `struct passwd') is `signed int', the other (in >>> `struct stat') is `signed short'. Darn that MS-supplied stat.h! >>> > > OK, I will add this to my todo. Thanks. > I have just checked in a hack to Ffile_attributes that casts the uid in the stat structure to unsigned short on windows to make it consistent with getuid. You'll need to remove this hack if/when you make the above more comprehensive change. I think the current %= 60001 in several places in w32.c where uid and gid are initialised will be able to be removed once you have made this change too. --------------070206030009040504020808-- From unknown Fri Jun 20 19:45:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sat, 10 May 2008 14:24:02 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator