Just use the direct octals for the mode on the lock file
ClosedPublic

Authored by demon on Oct 27 2017, 8:02 PM.

Details

Reviewers
mmodell
Group Reviewers
Release-Engineering-Team
Commits
rMSCA7bb7dc9dd581: Just use the direct octals for the mode on the lock file
Patch without arc
git checkout -b D858 && curl -L https://phabricator.wikimedia.org/D858?download=true | git apply
Summary

The bitwise math is easy to screw up and hard to follow. Plus we can avoid the import of stat (which triggers Python 3 warnings, even if our usage here is ok)

Diff Detail

Repository
rMSCA Scap
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
demon created this revision.Oct 27 2017, 8:02 PM
Restricted Application added a reviewer: mmodell. · View Herald TranscriptOct 27 2017, 8:02 PM
Restricted Application added a reviewer: Release-Engineering-Team. · View Herald Transcript
Restricted Application added a project: Release-Engineering-Team. · View Herald Transcript
demon updated this revision to Diff 2264.Oct 27 2017, 8:10 PM
  • Fix octals
mmodell accepted this revision.Oct 27 2017, 9:43 PM
This revision is now accepted and ready to land.Oct 27 2017, 9:43 PM
This revision was automatically updated to reflect the committed changes.