September 11 2017 | File::Path Security | Back Next |
In that case, chdir $root would fail for a reason other than lack of permissions.
If $root now targeted a plain-text file, we'd be changing permissions on that plain-text file rather than on our intended directory.
What if that plain-text file were:
/etc/passwd
Home Last TOC | Copyright © 2017 James E Keenan | Back Next |