diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-09-01 12:00:33 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-09-01 12:00:33 +0800 |
commit | 78eea10ff86cbc9afe9d5ab7a91d92760b68da39 (patch) | |
tree | b55a5e71753b48cb7164587e447e7cb40c6f4af6 | |
parent | bacf65519d0abc2f789fa94970cde4327b3e03d8 (diff) | |
download | pttbbs-78eea10ff86cbc9afe9d5ab7a91d92760b68da39.tar pttbbs-78eea10ff86cbc9afe9d5ab7a91d92760b68da39.tar.gz pttbbs-78eea10ff86cbc9afe9d5ab7a91d92760b68da39.tar.bz2 pttbbs-78eea10ff86cbc9afe9d5ab7a91d92760b68da39.tar.lz pttbbs-78eea10ff86cbc9afe9d5ab7a91d92760b68da39.tar.xz pttbbs-78eea10ff86cbc9afe9d5ab7a91d92760b68da39.tar.zst pttbbs-78eea10ff86cbc9afe9d5ab7a91d92760b68da39.zip |
fix my problem @@
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1147 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mbbsd.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |