diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-17 10:41:17 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-17 10:43:13 -0700 |
commit | 3cccf0a9107d585173e527550bbc45253624ca2e (patch) | |
tree | 84f2ace0970fde0dc3c9863755eba8379574ffcf /lisp/emacs-lisp | |
parent | 4641bc1c550a81c71798c0176a6bfc34c8947c74 (diff) | |
download | emacs-3cccf0a9107d585173e527550bbc45253624ca2e.tar.gz emacs-3cccf0a9107d585173e527550bbc45253624ca2e.tar.bz2 emacs-3cccf0a9107d585173e527550bbc45253624ca2e.zip |
Don’t assume openat
Use openat only on platforms with O_PATH.
This ports to OS X 10.9 and earlier.
Problem reported by Keith David Bershatsky in:
https://lists.gnu.org/r/emacs-devel/2022-04/msg00805.html
* lib-src/emacsclient.c (local_sockname): Use open, not openat.
* src/sysdep.c (sys_openat): New static function,
which uses openat only if O_PATH is defined.
(emacs_openat): Use it instead of openat.
(emacs_openat_noquit): Remove.
(emacs_open_noquit): Reimplement as per the old emacs_openat_noquit,
but use plain 'open'.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions