unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthew Carter <r_q_einstein-emacsbugreport@yahoo.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#3328: set-default-file-modes on Windows Emacs broken
Date: Mon, 18 May 2009 16:39:31 -0400	[thread overview]
Message-ID: <4A11C783.2040206@yahoo.com> (raw)

    * 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







             reply	other threads:[~2009-05-18 20:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <83iqjwq3w9.fsf@gnu.org>
2009-05-18 20:39 ` Matthew Carter [this message]
2009-05-19 19:45   ` bug#3328: marked as done (set-default-file-modes on Windows Emacs broken) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A11C783.2040206@yahoo.com \
    --to=r_q_einstein-emacsbugreport@yahoo.com \
    --cc=3328@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).