[darcs-users] --set-scripts-executable ignore world flag ?
Karel Gardas
kgardas at objectsecurity.com
Tue Sep 13 13:42:13 UTC 2005
On Tue, 13 Sep 2005, gary ng wrote:
> umask 0022, so every file I create is by default
> 0744(just touch a). I changed it to 0755.
>
> Just found another thing, darcs don't consider changes
> to file attributes as change. I need to change the
> attribute, then change the content of the file and
> follows by a darcs record to record the changes.
Yes, that's because of darcs does not track file "metadata" changes at
all. --set-scripts-executable just makes darcs scanning for `#!' at the
beginning of file and if it is found, then makes this file executable.
> But the darcs get still gives me 0754, instead of 0755
> which is what I expect.
that's strange, since what darcs should do is just `chmod +x' equivalent.
The code is:
make_executable fp = do
stat <- getFileStatus fp
setFileMode fp (unionFileModes (unionFileModes (fileMode stat) ownerExecuteMode) groupExecuteMode)
see FileSystem.hs
> Oh, it is linux 2.4.31 on ext3(with user attribute
> patches), if that makes a difference.
I don't know if this might make difference, but is it also possible to
test this on plain ext3?
Thanks,
Karel
--
Karel Gardas kgardas at objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com
More information about the darcs-users
mailing list