[MERGE][bug #259855] Handle when Transport.stat() returns empty permissions
John Arbash Meinel
john at arbash-meinel.com
Thu Aug 21 17:27:16 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At the moment the FTP Transport doesn't check permission bits, but it *does*
implement .stat(). The existing code tried to do a stat() and if it raised
NotImplemented it fell back to *not* setting permission bits. Since FTP now
implements stat() it causes bzr to fall back to the 0700 mode (we force user
rwx because we assume that is always required.)
Anyway, this patch just notices when the stat returns 0000 for permissions and
treats it as a stat failure.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIrZdkJdeBCYSNAAMRAh7+AKCmO50sspPthq3maadYDQhsS9LhZgCcD3nx
NupVUJ8JXWVhocbk6O3zZGU=
=2kDP
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ftp_mode_259855.patch
Type: text/x-diff
Size: 9980 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080821/f5172a63/attachment-0001.bin
More information about the bazaar
mailing list