From: Johannes Schindelin Date: Wed, 03 Oct 2007 23:54:06 GMT Subject: Re: [PATCH] git-init: don't base core.filemode on the ability to chmod. Message-ID: In-Reply-To: <20071003231941.GA20800@admingilde.org> 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 &&=? Ciao, Dscho