diff options
author | Rory Dudley | 2024-02-19 02:33:36 -0700 |
---|---|---|
committer | Rory Dudley | 2024-02-19 02:33:36 -0700 |
commit | 08be85a2fc508450c6361af4ef38a7dcd3efbde5 (patch) | |
tree | 3d57a1940200f93b49e506b4e435af0d5a40d3e9 /src/recite/erro.rs | |
parent | 2e5cc53499947c32b01ea5e1787ed505bc286969 (diff) | |
download | dwarvish-08be85a2fc508450c6361af4ef38a7dcd3efbde5.tar.gz |
Better handling of errors during the fork
Adds two additional error checks when the shell forks:
1. Checks for permission (+r, +x)
2. Checks if the file exists
The first error may occur if the user does not have read access to the
file, or if the file is not executable. The second error may occur if a
file was removed from the $PATH, and the $PATH hasn't been refreshed
yet.
Diffstat (limited to 'src/recite/erro.rs')
0 files changed, 0 insertions, 0 deletions