From 584b00dfc540b2911e865b81bf5e213905cd9b8a Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 13 May 2008 19:43:22 +0000 Subject: - mail: ignore self from reject list - record/mbbsd: drop unused code git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4309 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'mbbsd/mbbsd.c') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index d3868532..3793ef96 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1166,7 +1166,7 @@ user_login(void) inet_pton(AF_INET, strrchr(frombuf, ':') + 1, &xsin.sin_addr); else inet_pton(AF_INET, frombuf, &xsin.sin_addr); - getremotename(&xsin, fromhost, remoteusername); /* RFC931 */ + getremotename(&xsin, fromhost, remoteusername); } /* 初始化 uinfo、flag、mode */ @@ -1402,29 +1402,6 @@ start_client(void) main_menu(); } -/* 取得 remote user name 以判定身份 */ -/* - * rfc931() speaks a common subset of the RFC 931, AUTH, TAP, IDENT and RFC - * 1413 protocols. It queries an RFC 931 etc. compatible daemon on a remote - * host to look up the owner of a connection. The information should not be - * used for authentication purposes. This routine intercepts alarm signals. - * - * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. - */ - -#define RFC931_TIMEOUT 10 -#define RFC931_PORT 113 /* Semi-well-known port */ -#define ANY_PORT 0 /* Any old port will do */ - -#if 0 -/* timeout - handle timeouts */ -static void -timeout(int sig) -{ - longjmp(byebye, sig); -} -#endif - static void getremotename(const struct sockaddr_in * from, char *rhost, char *rname) { -- cgit v1.2.3