Re: problem with file mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff King schrieb:
> On Mon, Jun 08, 2009 at 04:49:44PM +0300, Andrew Romanenco wrote:
>> true - B is Fat
> 
> Then you probably want to:
> 
>   git config core.filemode false
> 
> on B. Though I thought we automagically tested whether the filesystem
> supported executable bits when creating the repository.

We do. Our test basically:

   lstat()
   chmod(st_mode ^ S_IXUSR)
   lstat()

but Linux (Andrew said he's on Ubuntu) keeps the mode bits that user-space
requested with chmod() in the cache long enough that the subsequent
lstat() call sees what it just requested. So, our test doesn't notice that
the x-bit is not written to the filesystem.

:-(

-- Hannes
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]