summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-05-09 20:03:24 +0100
committerThomas Adam <thomas@xteddy.org>2015-05-09 20:03:24 +0100
commit4165ed96f8f0c494c7bd4f793176e508b6b6581d (patch)
tree97822a5f00cf840fd7452de5b9f0ff404711af48 /server-client.c
parentc11f628342e068baff30c7bee48eb62476406145 (diff)
Add back __CYGWIN__ block
This went missing during the merge from OpenBSD.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c5
1 files changed, 5 insertions, 0 deletions
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;