From 8c56b28ee4d609bab7d7a01834f033896d88dc59 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 16 Jun 2009 13:03:38 +0000 Subject: * add missing check-in for async mode logind git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4639 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 9e184522..3206ed86 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1929,7 +1929,7 @@ shell_login(char *argv0, struct ProgramOption *option) static int tunnel_login(char *argv0, struct ProgramOption *option) { - int tunnel = 0, csock = 0, success = 1; + int tunnel = 0, csock = 0; unsigned int pid = (unsigned int)getpid(); struct login_data dat = {0}; char buf[PATHLEN]; @@ -1983,7 +1983,7 @@ tunnel_login(char *argv0, struct ProgramOption *option) return 0; } if (toread (tunnel, &dat, sizeof(dat)) < sizeof(dat) || - towrite(tunnel, &success, sizeof(success)) < sizeof(success)) + towrite(tunnel, &dat.ack, sizeof(dat.ack)) < sizeof(dat.ack)) return 0; assert(dat.cb == sizeof(dat)); -- cgit v1.2.3