summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-26 11:38:02 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-26 11:38:02 +0800
commitb22ac35885eeb1e51b098a49cfd89aeeb71439b9 (patch)
treef85f80376e649b5fceb6491d05dc77a73b87e627 /mbbsd
parent7c61cede56b2959149d54c8fb0f3267a31d09285 (diff)
downloadpttbbs-b22ac35885eeb1e51b098a49cfd89aeeb71439b9.tar
pttbbs-b22ac35885eeb1e51b098a49cfd89aeeb71439b9.tar.gz
pttbbs-b22ac35885eeb1e51b098a49cfd89aeeb71439b9.tar.bz2
pttbbs-b22ac35885eeb1e51b098a49cfd89aeeb71439b9.tar.lz
pttbbs-b22ac35885eeb1e51b098a49cfd89aeeb71439b9.tar.xz
pttbbs-b22ac35885eeb1e51b098a49cfd89aeeb71439b9.tar.zst
pttbbs-b22ac35885eeb1e51b098a49cfd89aeeb71439b9.zip
unset SSH_CLIENT env variable in daemon mode
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@974 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 1ea9b1b8..376cc696 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.85 2003/06/26 03:16:10 kcwu Exp $ */
+/* $Id: mbbsd.c,v 1.86 2003/06/26 03:38:02 kcwu Exp $ */
#include "bbs.h"
#define SOCKET_QLEN 4
@@ -78,6 +78,9 @@ start_daemon()
exit(0);
}
#endif
+
+ if(getenv("SSH_CLIENT"))
+ unsetenv("SSH_CLIENT");
}
static void