Ticket #1042 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

FileUpload fails when mode-parameter is given

Reported by: m!nus Owned by:
Priority: patches-accepted Milestone: 0.8.3
Version: 0.8.2 Keywords: FileUpload mode chmod
Cc:

Description

Buildbot tries to chmod the file to be uploaded but the data gets written to a temporary file first which then is renamed. The chmod call is on the destination filename though. in buildbot/steps/transfer.py:33 change os.chmod(destfile, mode) to os.chmod(self.tmpname, mode) in order to fix this

Change History

comment:1 Changed 3 years ago by Dustin J. Mitchell

  • Status changed from new to closed
  • Resolution set to fixed

Merge branch 'fileupload-chmod-fix' of  git://github.com/whiteley/buildbot

Fixes #1042

Note: See TracTickets for help on using tickets.