~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-15 21:30:03 UTC
  • mto: (1185.50.20 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051215213003-6182bfb1ace9cfc3
It turns out that only the StubSFTPServer doesn't mask on open(), adding a chmod call after open

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
        tmp_abspath = '%s.tmp.%.9f.%d.%d' % (abspath, time.time(),
367
367
                        os.getpid(), random.randint(0,0x7FFFFFFF))
368
368
        fout = self._sftp_open_exclusive(tmp_abspath, mode=mode)
 
369
        if mode is not None:
 
370
            self._sftp.chmod(tmp_abspath, mode)
369
371
 
370
372
        try:
371
373
            try: