From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Carter Newsgroups: gmane.emacs.bugs Subject: bug#3328: set-default-file-modes on Windows Emacs broken Date: Mon, 18 May 2009 16:39:31 -0400 Message-ID: <4A11C783.2040206@yahoo.com> Reply-To: Matthew Carter , 3328@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242712081 23563 80.91.229.12 (19 May 2009 05:48:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2009 05:48:01 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 19 07:47:55 2009 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 1M6IB8-0007KM-EO for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2009 07:47:54 +0200 Original-Received: from localhost ([127.0.0.1]:41389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6IB7-0007IN-SX for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2009 01:47:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M69oe-0002mv-8N for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 16:52:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M69oY-0002l1-Vb for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 16:52:07 -0400 Original-Received: from [199.232.76.173] (port=53656 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M69oX-0002kg-5l for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 16:52:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41731) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M69oW-0007t3-8w for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 16:52:00 -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 n4IKpu86022481; Mon, 18 May 2009 13:51:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4IKj3JO019868; Mon, 18 May 2009 13:45:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Matthew Carter Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 18 May 2009 20:45:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3328 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124267918318383 (code B ref -1); Mon, 18 May 2009 20:45:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 18 May 2009 20:39:43 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. 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 n4IKddCs018370 for ; Mon, 18 May 2009 13:39:41 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M69cZ-0002hF-CA for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 16:39:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M69cY-0002gU-OG for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 16:39:38 -0400 Original-Received: from [199.232.76.173] (port=57128 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M69cY-0002gG-Dm for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 16:39:38 -0400 Original-Received: from smtp105.prem.mail.ac4.yahoo.com ([76.13.13.44]:20248) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1M69cY-00062Y-2Q for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 16:39:38 -0400 Original-Received: (qmail 4732 invoked from network); 18 May 2009 20:39:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=1ddK1yfKfLimY3qQq5RkLQqXldzg7yAGpHqZQlKLBcic/3yALGDb3g7uyBkyrYywQAOybUqY/bJEcE4E29gmqaHHE8pyFoQBuUqQIoKYqX/LsbDTWyoWIbK8VLCkqucvciyBiJnBNGlsmy7C50e/JOPOou8tgs9/GVPdCAp5UcA= ; Original-Received: from portale-x.east.saic.com (r_q_einstein-emacsbugreport@198.151.13.15 with plain) by smtp105.prem.mail.ac4.yahoo.com with SMTP; 18 May 2009 13:39:37 -0700 PDT X-Yahoo-SMTP: dMJxo3KswBAfXpqmkp1vZEFWzZuPaCp4D0o- X-YMail-OSG: Lvw3s44VM1n0ESCa4CfclqgZ_ziGD_GaZ56Url4b.M3dXqm_zA2gScIqWUoSwyrcDaFhBR.qN0oV6KAE_2AvBfwfrBMy8vYF6qgGGQyRiOzhuDGGF5SHhyrsNdvvIckEwUMK009hNBzblykE0gZcJL1Q0L2rIaCOopDF3uj30B3sEIjct85G_Nlaw3Vn5kF70t.x9R_wuxeTGffVcybQrFYjSSegAFtDuPQGuI.qSaQnc9UOOptcXqVdzy7LFOtY6Wze9VnGn4ibL4Q1x9qIlg-- X-Yahoo-Newman-Property: ymail-3 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 18 May 2009 16:52:07 -0400 X-Mailman-Approved-At: Tue, 19 May 2009 01:47:16 -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:28016 Archived-At: * The version number of Emacs. GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE * The operands given to the configure command when Emacs was installed. I installed this version of Windows emacs as a binary installation downloaded from the web, so I never ran a "configure" command. * A complete list of any modifications you have made to the Emacs source. None. * Details of any other deviations from the standard procedure for installing GNU Emacs. None. * The precise commands we need to type to reproduce the bug. Run this lisp expression: (set-default-file-modes ?\644) e.g., by putting it in your ~/.emacs or by using M-: Then, create a new file, "foo.txt". Then, in a cygwin bash shell, run "ls -l foo.txt". The file SHOULD have these permissions: -rw-r--r-- But instead, it has these permissions: -rwxrwxrwx I tried passing various values to set-default-file-modes to see whether it had any effect at all. It did, but not the expected effect. Here are the results I found: The first column tells the value that I passed in to set-default-file-modes . The second column tells what value the default-file-modes function returned as a result. The third column shows the actual permissions that a created file had (as shown by cygwin "ls -l"). (All values are shown in octal.) set-default-file-modes default-file-modes file permissions ---------------------- ------------------ ---------------- 01 0177 0555 0700 0777 0755 0777 0777 0755 0 0177 0555 0400 0577 0555 040 0177 0555