Skip to content

Make sure doasedit can handle filenames starting with a dash

Latest
Compare
Choose a tag to compare
@slicer69 slicer69 released this 01 May 14:28
· 2 commits to master since this release

This is a minor update which just affects the doasedit script, a utility to help the user cleanly edit files as another user.

In the past, doasedit would fail if the filename we were trying to edit started with a dash character (such as -bar.txt or -config.txt). It would also fail ungracefully if the user did not have permission to create a temporary file.

Now doasedit will exit gracefully with a useful error message if we are unable to create temporary files. It will also handle filenames with a leading dash.