diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-10-29 11:37:42 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-10-29 21:53:28 -0700 |
commit | 24a186c5623784170c990fbfd410079984bb6aa2 (patch) | |
tree | 5eb5d147b9083abebe0e898300c031969d894774 /bin/emacsclient | |
parent | 5c0d0b53498397ea3e28a9eb65e9d4b57ab81594 (diff) | |
download | dotfiles-24a186c5623784170c990fbfd410079984bb6aa2.tar.gz |
emacsclient wrapper: use correct umask when creating $locks_dir
In particular, we don't want to create XDG_RUNTIME_DIR other than as 700.
Diffstat (limited to 'bin/emacsclient')
-rwxr-xr-x | bin/emacsclient | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/emacsclient b/bin/emacsclient index f14c6c63..2c1dcc41 100755 --- a/bin/emacsclient +++ b/bin/emacsclient @@ -53,7 +53,7 @@ maybe_notify () { } spw_flock () { - mkdir -p "$locks_dir" + ( umask 077; mkdir -p "$locks_dir" ) eval "exec $1<>${locks_dir}$2" if ! flock --wait 15 "$1"; then maybe_notify "couldn't lock starting Emacs daemon named $2" |