Re: confused about preserved permissions
- From
David Kastrup <dak@gnu.org>
- Date
- Aug 23, 2007, 08:08 UTC
- Message-ID
- <86fy2abrm5.fsf@lola.quinscape.zz>
- In-Reply-To
- <7vfy2avg2b.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 8 quoted lines
> Benoit SIGOURE <tsuna@lrde.epita.fr> writes: > >> Let's look at the problem from another point of view then: I want my >> *working tree* to be group readable even though my umask is 066. > > I have to wonder if there is any sane development tool that > supports that kind of thing. E.g. vi, emacs, gcc,...? If you > allowed a tool to do that, what's the point of having a umask?
Hm? Are we talking about the same Emacs here? The thing that has a directory editor built into it with which one can do chmod and so on?
Here are a few functions:
executable-make-buffer-file-executable-if-script-p is an autoloaded Lisp function in `executable'.
(executable-make-buffer-file-executable-if-script-p) Make file executable according to umask if not already executable.
If file already has any execute bits set at all, do not change existing
file modes.---------------- dired-do-chmod Command: Change the mode of the marked (or next ARG) files. This calls chmod, thus symbolic modes like `g+w' are allowed.
(fn &optional ARG)
---------------- executable-set-magic Command: Set this buffer's interpreter to INTERPRETER with optional ARGUMENT. The variables `executable-magicless-file-regexp', `executable-prefix', `executable-insert', `executable-query' and `executable-chmod' control when and how magic numbers are inserted or replaced and scripts made executable.
(fn INTERPRETER &optional ARGUMENT NO-QUERY-FLAG INSERT-FLAG)
However, Emacs does not provide a hook into the system call as far as I can see: it calls chmod explicitly.
-- David Kastrup