Re: [PATCH] git-init: don't base core.filemode on the ability to chmod.
Johannes Schindelin wrote:
Show 12 quoted lines
> Hi,
>
> On Thu, 4 Oct 2007, Martin Waitz wrote:
>
>> - filemode = (!chmod(path, st1.st_mode ^ S_IXUSR) &&
>> + /* test that new files are not created with X bit */
>> + filemode = !(st1.st_mode & S_IXUSR);
>> + /* test that we can modify the X bit */
>> + filemode &= (!chmod(path, st1.st_mode ^ S_IXUSR) &&
>
> Should that not be &&=?
>
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231