From: Jakub Narebski <jnareb@gmail.com>
To: "Daniel Höpfl" <daniel@hoepfl.de>
Cc: <git@vger.kernel.org>
Subject: Re: [Bug] Permissions of temp file created in git's sha1_file.c correct?
Date: Wed, 02 Feb 2011 04:47:20 -0800 (PST) [thread overview]
Message-ID: <m3vd128uz7.fsf@localhost.localdomain> (raw)
In-Reply-To: <5dfd4de157546244c86acd52564247ce@kloeckner.org>
Daniel Höpfl <daniel@hoepfl.de> writes:
> Hello,
>
> I recently (very recently: yesterday) started using git. I switched from
> Bazaar, that required me to have a file system that supports the executable
> flag (as it always stores this flag based on what the file system says).
> FAT does not support the executable flag.
That is why there is `core.fileMode` config variable, see git-config(1)
manpage:
core.fileMode
If false, the executable bit differences between the index and the
working copy are ignored; useful on broken filesystems like FAT. See
git-update-index(1).
The default is true, except git-clone(1) or git-init(1) will probe
and set core.fileMode false if appropriate when the repository is
created.
Didin't git detect that it was on such filesystem?
[...]
> I think that my file system is right (of course ;-) ): A file that is not
> writable must not be renamed (arguable as the name could be seen as the
> content of the containing directory) and it must not be deleted.
Not true. Whether file can be renamed or deleted is governed by
permissions in directory that contains given file, not the file itself
(at least on POSIX). If I understand things correctly, of course.
Note that git doesn't store full permissions, in particular read/write
permissions, only executable bit and "is symlink" thing.
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2011-02-02 12:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 12:15 [Bug] Permissions of temp file created in git's sha1_file.c correct? Daniel Höpfl
2011-02-02 12:47 ` Jakub Narebski [this message]
2011-02-02 13:25 ` Daniel Höpfl
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3vd128uz7.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=daniel@hoepfl.de \
--cc=git@vger.kernel.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.
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 NNTP newsgroup(s).