summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-10-31 08:13:58 +0000
committernicm <nicm@openbsd.org>2015-10-31 08:13:58 +0000
commit3baa4a0c87c984716fa2bde8c3c85ab9031b05d8 (patch)
treed4a7ae30f3f6f078addaedda2c627e1216b270d9 /lib/libc
parentsync (diff)
downloadwireguard-openbsd-3baa4a0c87c984716fa2bde8c3c85ab9031b05d8.tar.xz
wireguard-openbsd-3baa4a0c87c984716fa2bde8c3c85ab9031b05d8.zip
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).
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions