aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/dirmngr.c
diff options
context:
space:
mode:
Diffstat (limited to 'dirmngr/dirmngr.c')
-rw-r--r--dirmngr/dirmngr.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c
index b19b4180d..6eabca9c3 100644
--- a/dirmngr/dirmngr.c
+++ b/dirmngr/dirmngr.c
@@ -30,11 +30,9 @@
#include <assert.h>
#include <time.h>
#include <fcntl.h>
-#ifdef HAVE_W32_SYSTEM
-# include <direct.h>
-#else
-# include <sys/socket.h>
-# include <sys/un.h>
+#ifndef HAVE_W32_SYSTEM
+#include <sys/socket.h>
+#include <sys/un.h>
#endif
#include <sys/stat.h>
#include <unistd.h>
@@ -1270,11 +1268,6 @@ main (int argc, char **argv)
#ifdef HAVE_W32_SYSTEM
(void)csh_style;
(void)nodetach;
- if (_chdir("\\"))
- {
- log_error ("chdir to / failed: %s\n", strerror (errno));
- exit (1);
- }
pid = getpid ();
es_printf ("set %s=%s;%lu;1\n",