From 24a186c5623784170c990fbfd410079984bb6aa2 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 29 Oct 2022 11:37:42 -0700 Subject: emacsclient wrapper: use correct umask when creating $locks_dir In particular, we don't want to create XDG_RUNTIME_DIR other than as 700. --- bin/emacsclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/emacsclient') 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" -- cgit v1.2.3