open-power / petitboot

GNU General Public License v2.0
205 stars 56 forks source link

Check that the path passed in to copy_file_secure_dest is a file #91

Open BradWhittington opened 2 years ago

BradWhittington commented 2 years ago

This is a copy-pasta proposed fix for the issue I logged in #90

If the path passed into copy_file_secure_dest is a valid, readable directory, it will currently proceed without error, and create a zero byte file in the destination path.