summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-01 12:00:33 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-01 12:00:33 +0800
commit37475b1bf95bf269d1a59ad19a8671735febd966 (patch)
treee39a41b6d52e40e24f52ca148292e0134f9045db
parent93fba89d94468d5b23fd482063db063bbb7d3c20 (diff)
downloadpttbbs-37475b1bf95bf269d1a59ad19a8671735febd966.tar
pttbbs-37475b1bf95bf269d1a59ad19a8671735febd966.tar.gz
pttbbs-37475b1bf95bf269d1a59ad19a8671735febd966.tar.bz2
pttbbs-37475b1bf95bf269d1a59ad19a8671735febd966.tar.lz
pttbbs-37475b1bf95bf269d1a59ad19a8671735febd966.tar.xz
pttbbs-37475b1bf95bf269d1a59ad19a8671735febd966.tar.zst
pttbbs-37475b1bf95bf269d1a59ad19a8671735febd966.zip
fix my problem @@
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1147 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/mbbsd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/mbbsd.c b/pttbbs/mbbsd/mbbsd.c
index 80428bef..3d5ba494 100644
--- a/pttbbs/mbbsd/mbbsd.c
+++ b/pttbbs/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;