From: Erik Faye-Lund Date: Mon, 14 Jul 2014 11:31:35 GMT Subject: Re: No fchmod() under msygit - Was: Re: [PATCH 00/14] Add submodule test harness Message-ID: In-Reply-To: <20140709200046.GB17454@dcvr.yhbt.net> On Wed, Jul 9, 2014 at 10:00 PM, Eric Wong wrote: > Torsten Bögershausen 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. You're saying this as if Windows is a single-user system. It's not, but it uses ACLs rather than POSIX permissions to manage file-system permissions. So far we've opted to ignore ACLs in Git for Windows, though.