My favorites | Sign in
Project Home Wiki Issues
New issue   Search
for
  Advanced search   Search tips
Issue 1143: Change to post-review in revision 1988 makes the captured Perforce output file unreadable on Mac
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  chip...@gmail.com
Closed:  Jun 2009


Sign in to add a comment
 
Reported by pds1...@gmail.com, Jun 1, 2009
I downloaded the post-review script from the Subversion repository at revision 1990 and attempted 
to use it to submit a change to our server which is running a nightly snapshot from last December.  
The post-review script exited with an error when it attempted to generate the diff file from 
Perforce.  When I enabled debugging and attempted to run the failing diff command, I discovered 
that the temporary file that was being used to hold the previous version of the file had the odd 
permissions of -w-------.  After some poking around, I discovered that the _write_file method 
had been updated in revision 1988 to explicitly call os.chmod(tmpfile, stat.S_IWRITE). If I change 
the call to os.chmod(tmpfile. stat.S_IREAD | stat.S_IWRITE), then I am able to successfully post 
changes for review.

I have a attached a patch file that contains the described one line change.
post-review.diff
445 bytes   View   Download
Comment 1 by project member chip...@gmail.com, Jun 2, 2009
Thanks. Sorry about the breakage.

We generally prefer that diffs be uploaded to http://reviews.review-board.org/, but
this is simple enough where I'll take this here this time.

Fixed in r1991.
Status: Fixed
Owner: chipx86
Labels: Component-RBTools
Sign in to add a comment

Powered by Google Project Hosting