• Paul Eggert's avatar
    emacsclient: fix symlink/socket race · 3e5d7755
    Paul Eggert authored
    * lib-src/emacsclient.c (socket_status): New arg UID.
    All uses changed.
    (set_local_socket): Don’t create the unbound socket unless the
    initial sanity checks on the socket file succeed; this
    simplifies cleaning it up.  Check socket ownership again
    after connecting, to fix a race (Bug#33366).
emacsclient.c 53 KB