Comment 7 for bug 326543

Revision history for this message
Martin Pool (mbp) wrote : Re: Broken permissions over FTP for .bzr/repository (and others)

I'd like to fix this, but it's not strictly needed for 2.0 therefore I'm untargeting it.

I would guess that what's happening here is that bzr's trying to read the existing permissions from the repository and to then set the permissions on newly created files consistently, but for some reason it's reading them back wrongly. Perhaps it has to parse ls output and is getting it wrong.

Could you try running the equivalent of these commands, with appropriate URLs:

mbp@grace% python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from bzrlib.transport import get_transport
>>> t = get_transport('sftp://localhost/home/mbp')
>>> t.stat('.')
<SFTPAttributes: [ size=16384 uid=1000 gid=1000 mode=040711 atime=1246340838 mtime=1246341088 ]>
>>> '%o' % t.stat('.').st_mode
'40711'
>>>