Re: No fchmod() under msygit - Was: Re: [PATCH 00/14] Add submodule test harness
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Jul 9, 2014, 20:00 UTC
- Message-ID
- <20140709200046.GB17454@dcvr.yhbt.net>
- In-Reply-To
- <53BCE3A7.8070600@web.de>
Torsten Bögershausen <tboegi@web.de> wrote:
> (And why is it "& 07777" and not "& 0777")
This is to preserve the uncommon sticky/sgid/suid bits. Probably not needed, but better to keep as much intact as possible.
> Can we avoid the fchmod() all together ?
For single-user systems, sure.
For multi-user systems with git-imap-send users and passwords in $GIT_CONFIG, I suggest not.