[MERGE] Fix LockableFile modes

John Arbash Meinel john at arbash-meinel.com
Thu Dec 13 20:20:24 GMT 2007


As reported by Jari Aalto, if os.stat('.bzr/repository') returns a
readonly directory, we will try to create new files with no write
permissions for the current user. It is an odd situation to be in, but if
we cannot create a writable file, the open() will fail anyway.

So this is just a simple patch that makes sure any new directories we
create will have access writes for at least this user, and the same for
any newly created files.

John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 6824 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071213/cf605291/attachment.bin 


More information about the bazaar mailing list