From 4165ed96f8f0c494c7bd4f793176e508b6b6581d Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Sat, 9 May 2015 20:03:24 +0100 Subject: [PATCH] Add back __CYGWIN__ block This went missing during the merge from OpenBSD. --- server-client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server-client.c b/server-client.c index a9348997..84ae86bc 100644 --- a/server-client.c +++ b/server-client.c @@ -1187,6 +1187,11 @@ server_client_msg_identify(struct client *c, struct imsg *imsg) return; c->flags |= CLIENT_IDENTIFIED; +#ifdef __CYGWIN__ + c->fd = open(c->ttyname, O_RDWR|O_NOCTTY); + c->cwd = open(".", O_RDONLY); +#endif + if (c->flags & CLIENT_CONTROL) { c->stdin_callback = control_callback;