commit | 01defc9f4965bb174e1d1295754d5a8695683054 | [log] [download] |
---|---|---|
author | nicm <nicm> | Sat Oct 31 08:13:58 2015 +0000 |
committer | nicm <nicm> | Sat Oct 31 08:13:58 2015 +0000 |
tree | 6f8095583d6176dffe130d6ff3b5dbc3f0e3150d | |
parent | 45f3cea263d1f99912cd6b353c91ccb872c26a71 [diff] |
Because pledge(2) does not allow us to pass directory file descriptors around, we can't use file descriptors for the working directory because we will be unable to pass it to a privileged process to tell it where to read or write files or spawn children. So move tmux back to using strings for the current working directory. We try to check it exists with access() when it is set but ultimately fall back to ~ if it fails at time of use (or / if that fails too).