From 0faf8951544f43790c412777a926c969540174bd Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 8 Jun 2016 09:04:29 +0200 Subject: 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 --- scd/scdaemon.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'scd/scdaemon.c') diff --git a/scd/scdaemon.c b/scd/scdaemon.c index 215e63f37..c468a8406 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -376,13 +376,6 @@ cleanup (void) name = redir_socket_name? redir_socket_name : socket_name; gnupg_remove (name); - p = strrchr (name, '/'); - if (p) - { - *p = 0; - rmdir (name); - *p = '/'; - } *socket_name = 0; } } -- cgit v1.2.3