Parth Malwankar wrote:
> One minor annoyance with that is that .bzr.log is created with the executable bit set due to O_CREAT. As per the open(2) man page:
>
> The effective permissions are modified by the process's umask in the usual way: The permissions of the created file are (mode & ~umask).
>
> On my system the mask is 022. I suppose we can do a chown specifically to unset executable bit. Thoughts?
>
> Note: This isn't tested on Windows yet as I don't have a windows system available at the moment.
>
Why not just use "mode = source_mode & ~0111", which should always strip
the executable bit off. I don't see any need have the file executable.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Parth Malwankar wrote:
> One minor annoyance with that is that .bzr.log is created with the executable bit set due to O_CREAT. As per the open(2) man page:
>
> The effective permissions are modified by the process's umask in the usual way: The permissions of the created file are (mode & ~umask).
>
> On my system the mask is 022. I suppose we can do a chown specifically to unset executable bit. Thoughts?
>
> Note: This isn't tested on Windows yet as I don't have a windows system available at the moment.
>
Why not just use "mode = source_mode & ~0111", which should always strip
the executable bit off. I don't see any need have the file executable.
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
w+WcACgkQJdeBCY SNAANCMQCgtEGTt aSAUqUVhiKnEFy2 EMo4 glc5kbwlMxcfUFs 0E
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAku
pZEAoLDZtbpEfnW
=nMDG
-----END PGP SIGNATURE-----