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)
Sun, Jul 12, 8:52 PM
Unknown Object (File)
Sun, Jul 12, 8:52 PM
Unknown Object (File)
Jun 8 2026, 6:59 AM
Unknown Object (File)
Mar 10 2026, 4:11 AM
Unknown Object (File)
Mar 10 2026, 4:11 AM
Unknown Object (File)
Mar 10 2026, 4:10 AM
Unknown Object (File)
Mar 6 2026, 6:58 PM
Unknown Object (File)
Feb 27 2026, 11:47 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.