1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00
wezterm/pty
Wez Furlong 9cd72fefe2 pty: cmdbuilder: check for executable access when resolving program
`wezterm start -- /etc/profile` would crash on macOS because
`/etc/profile` isn't executable.

This commit checks for executable access as a prereq for both the
path search and the absolute path cases and generates a non-crashing
error:

```
$ wezterm start -- /etc/profile
17:24:03.574  ERROR  wezterm_gui > Unable to spawn /etc/profile because it doesn't exist on the filesystem or is not executable (EACCES: Permission denied); terminating
```
2022-08-09 17:29:22 -07:00
..
examples pty: update async example for more recent smol release 2020-10-03 11:15:57 -07:00
src pty: cmdbuilder: check for executable access when resolving program 2022-08-09 17:29:22 -07:00
Cargo.toml pty: cmdbuilder: check for executable access when resolving program 2022-08-09 17:29:22 -07:00