##################################################### # Fix the exit code when access denied on a popmailbox # It was exiting with 0 which meant users didnt receive # and error when they checked a locked mailbox. # # http://bluedot.net/mail/archive/read.php?f=2&i=5990&t=5990 # # This patch has been incorporated into the later builds of vpopmail (5.3.7 onwards) # # Michael Bowe ##################################################### --- vchkpw.c Thu Jan 9 09:24:25 2003 +++ ../../vpopmail-5.2.1/vchkpw.c Sat Aug 3 12:31:54 2002 @@ -382,7 +382,7 @@ "vchkpw: pop access denied %s@%s:%s", TheUser, TheDomain, IpAddr); vlog(VLOG_ERROR_ACCESS, TheUser, TheDomain, ThePass, TheName, IpAddr, LogLine); - vchkpw_exit(0); + vchkpw_exit(24); } /* They are authenticated, log the success if configured */