Do not try to remove the enclosing directory of sockets.
authorWerner Koch <wk@gnupg.org>
Wed, 8 Jun 2016 07:04:29 +0000 (09:04 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 8 Jun 2016 07:04:29 +0000 (09:04 +0200)
commit0faf8951544f43790c412777a926c969540174bd
tree4e6686cecdcee5b44440cfa7bd7405e912773ef9
parent36550dde998fa1d497098050ca2d4e1a952ed6b6
Do not try to remove the enclosing directory of sockets.

* agent/gpg-agent.c (remove_socket): Do not remove the enclosing
directory.
* scd/scdaemon.c (cleanup): Ditto.

--

The socket directory is now below /run or at ~/.gnupg.  Thus we should
not try to remove the directory of the socket.  The auto-removal was
introduced at a time we used a temporary directory for the sockets.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/gpg-agent.c
scd/scdaemon.c