Page MenuHomePhabricator

Make setCWD() with bad paths safer
ClosedPublic

Authored by epriestley on Apr 22 2016, 12:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 4:26 AM
Unknown Object (File)
Thu, Apr 11, 12:31 PM
Unknown Object (File)
Thu, Apr 11, 9:03 AM
Unknown Object (File)
Tue, Apr 9, 9:31 PM
Unknown Object (File)
Tue, Apr 9, 6:03 PM
Unknown Object (File)
Fri, Apr 5, 8:10 PM
Unknown Object (File)
Wed, Apr 3, 1:43 AM
Unknown Object (File)
Tue, Apr 2, 12:09 PM
Subscribers
None

Details

Summary

Ref T10853. This isn't a complete fix, but should prevent the most serious mistakes with setCWD() on bad paths.

Test Plan
  • Wrote a script using setCWD().
  • Gave it a bad path: got an explicit error.
  • Gave it a good path: things worked great.

Diff Detail

Repository
rPHU libphutil
Branch
cwd1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 11897
Build 14946: Run Core Tests
Build 14945: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Make setCWD() with bad paths safer.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 22 2016, 2:31 PM
This revision was automatically updated to reflect the committed changes.