diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-17 13:10:19 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-04-17 13:10:19 -0700 |
commit | 6662079b9025d437477e58a81af994a6513d7408 (patch) | |
tree | d75f61b7e030077618488e3bbf8945b467660f74 /lib-src | |
parent | 1dd8a003253db74ccb724b5f0573fb2005fac07c (diff) | |
parent | 3cccf0a9107d585173e527550bbc45253624ca2e (diff) | |
download | emacs-6662079b9025d437477e58a81af994a6513d7408.tar.gz emacs-6662079b9025d437477e58a81af994a6513d7408.tar.bz2 emacs-6662079b9025d437477e58a81af994a6513d7408.zip |
Merge from origin/emacs-28
3cccf0a910 Don’t assume openat
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/emacsclient.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 7406ef3490e..73c8e45a865 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -1431,8 +1431,7 @@ local_sockname (int s, char sockname[socknamesize], int tmpdirlen, char *emacsdirend = sockname + tmpdirlen + suffixlen - strlen(server_name) - 1; *emacsdirend = '\0'; - int dir = openat (AT_FDCWD, sockname, - O_PATH | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); + int dir = open (sockname, O_PATH | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); *emacsdirend = '/'; if (dir < 0) return errno; |