summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-14 09:35:40 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-14 09:35:40 +0800
commit833d86de55341c2790a09d6770af1458d54fb0a6 (patch)
tree530f0450b116b21525edd60c6b7d457e425bca50 /daemon
parentabd9bb3c0baaec51d07ec87d5c5d6c20866d4828 (diff)
downloadpttbbs-833d86de55341c2790a09d6770af1458d54fb0a6.tar
pttbbs-833d86de55341c2790a09d6770af1458d54fb0a6.tar.gz
pttbbs-833d86de55341c2790a09d6770af1458d54fb0a6.tar.bz2
pttbbs-833d86de55341c2790a09d6770af1458d54fb0a6.tar.lz
pttbbs-833d86de55341c2790a09d6770af1458d54fb0a6.tar.xz
pttbbs-833d86de55341c2790a09d6770af1458d54fb0a6.tar.zst
pttbbs-833d86de55341c2790a09d6770af1458d54fb0a6.zip
* fix bpop3d compilation
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4841 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon')
-rw-r--r--daemon/bpop3d/Makefile2
-rw-r--r--daemon/bpop3d/bpop3d.c10
2 files changed, 6 insertions, 6 deletions
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);