From 833d86de55341c2790a09d6770af1458d54fb0a6 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 14 Sep 2009 01:35:40 +0000 Subject: * fix bpop3d compilation git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4841 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- daemon/bpop3d/Makefile | 2 +- daemon/bpop3d/bpop3d.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'daemon') diff --git a/daemon/bpop3d/Makefile b/daemon/bpop3d/Makefile index 69621d70..f523b88f 100644 --- a/daemon/bpop3d/Makefile +++ b/daemon/bpop3d/Makefile @@ -4,7 +4,7 @@ SRCROOT= ../.. PROGRAMS= bpop3d UTILDIR= $(SRCROOT)/util -UTILOBJ= $(UTILDIR)/util_var.o $(UTILDIR)/util_passwd.o +UTILOBJ= $(UTILDIR)/util_var.o LDLIBS+=$(SRCROOT)/common/bbs/libcmbbs.a \ $(SRCROOT)/common/sys/libcmsys.a \ diff --git a/daemon/bpop3d/bpop3d.c b/daemon/bpop3d/bpop3d.c index 777c8e3f..116cf7ec 100644 --- a/daemon/bpop3d/bpop3d.c +++ b/daemon/bpop3d/bpop3d.c @@ -66,16 +66,16 @@ cmd_user(struct client_state *cs, const char * arg) void cmd_pass(struct client_state *cs, const char * arg) { - userec_t cuser; + userec_t xuser; char * pw; - if (passwd_query(cs->uid, &cuser) < 0) { + if (passwd_query(cs->uid, &xuser) < 0) { evbuffer_add_printf(cs->evb_write, "-ERR user not found\r\n"); return; } - pw = crypt(arg, cuser.passwd); - if (strcmp(pw, cuser.passwd) == 0) { + pw = crypt(arg, xuser.passwd); + if (strcmp(pw, xuser.passwd) == 0) { evbuffer_add_printf(cs->evb_write, "+OK\r\n"); cs->pop3_state = POP3_TRANS; } @@ -253,7 +253,7 @@ cb_listen(int fd, short event, void *arg) int main(int argc, char *argv[]) { - int ch, sfd, inetd = 0, daemon = 1; + int ch, sfd=0, inetd = 0, daemon = 1; char *iface_ip = "127.0.0.1:5140"; Signal(SIGPIPE, SIG_IGN); -- cgit v1.2.3