From 78eea10ff86cbc9afe9d5ab7a91d92760b68da39 Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 1 Sep 2003 04:00:33 +0000 Subject: fix my problem @@ git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1147 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 80428bef..3d5ba494 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -800,9 +800,7 @@ user_login() memset(&water[0], 0, sizeof(water_t) * 6); strlcpy(water[0].userid, " ¥þ³¡ ", sizeof(water[0].userid)); - if(getenv("SSH_CLIENT") == NULL) - strcpy(fromhost, "localhost"); - else { + if(getenv("SSH_CLIENT") != NULL){ char frombuf[50]; sscanf(getenv("SSH_CLIENT"), "%s", frombuf); xsin.sin_family = AF_INET; -- cgit v1.2.3