summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-21 04:48:10 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-21 04:48:10 +0800
commit4aa8a791a0d022eae3565a9d0ea450334ec0023a (patch)
treeb23957ae8203da88e32bb32cb076eb16c5531807 /mbbsd/mbbsd.c
parenta45dfc5dbbbf31968340f4ce85fe998e7aa46c68 (diff)
downloadpttbbs-4aa8a791a0d022eae3565a9d0ea450334ec0023a.tar
pttbbs-4aa8a791a0d022eae3565a9d0ea450334ec0023a.tar.gz
pttbbs-4aa8a791a0d022eae3565a9d0ea450334ec0023a.tar.bz2
pttbbs-4aa8a791a0d022eae3565a9d0ea450334ec0023a.tar.lz
pttbbs-4aa8a791a0d022eae3565a9d0ea450334ec0023a.tar.xz
pttbbs-4aa8a791a0d022eae3565a9d0ea450334ec0023a.tar.zst
pttbbs-4aa8a791a0d022eae3565a9d0ea450334ec0023a.zip
revert cuser bug fix
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1800 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index ad9bd1ad..e5d236d4 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -591,7 +591,7 @@ login_query()
passbuf, sizeof(passbuf), NOECHO);
passbuf[8] = '\0';
- if( initcuser(uid) < 1 || cuser.userid[0] ||
+ if( initcuser(uid) < 1 || !cuser.userid[0] ||
!checkpasswd(cuser.passwd, passbuf) ){
logattempt(cuser.userid , '-');
outs(ERR_PASSWD);