CVSROOT: /cvs Module name: src Changes by: n...@cvs.openbsd.org 2015/10/31 02:13:58
Modified files: usr.bin/tmux : client.c cmd-attach-session.c cmd-if-shell.c cmd-load-buffer.c cmd-new-session.c cmd-new-window.c cmd-respawn-pane.c cmd-respawn-window.c cmd-run-shell.c cmd-save-buffer.c cmd-split-window.c format.c job.c server-client.c session.c tmux.h window-copy.c window.c Log message: 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).