summaryrefslogtreecommitdiff
path: root/bin/emacsclient
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-10-29 11:37:42 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-10-29 21:53:28 -0700
commit24a186c5623784170c990fbfd410079984bb6aa2 (patch)
tree5eb5d147b9083abebe0e898300c031969d894774 /bin/emacsclient
parent5c0d0b53498397ea3e28a9eb65e9d4b57ab81594 (diff)
downloaddotfiles-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-xbin/emacsclient2
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"