summaryrefslogtreecommitdiffstats
path: root/libexec/uucpd/uucpd.c
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-04-08 12:32:17 +0000
committerdavidn <davidn@FreeBSD.org>1997-04-08 12:32:17 +0000
commit2bd0c6c536511e5c9f2c9fcc442b41f3665cef7a (patch)
tree6f7e10caaecd921e3b4b957183bb9360edfb0a44 /libexec/uucpd/uucpd.c
parenta380647df579e2d71e86387399d80435dfce8e8e (diff)
downloadFreeBSD-src-2bd0c6c536511e5c9f2c9fcc442b41f3665cef7a.zip
FreeBSD-src-2bd0c6c536511e5c9f2c9fcc442b41f3665cef7a.tar.gz
Fix for expiration date test. Closes PR#3224.
Diffstat (limited to 'libexec/uucpd/uucpd.c')
-rw-r--r--libexec/uucpd/uucpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/uucpd/uucpd.c b/libexec/uucpd/uucpd.c
index bbbb4b9..8f53807 100644
--- a/libexec/uucpd/uucpd.c
+++ b/libexec/uucpd/uucpd.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: uucpd.c,v 1.10 1997/03/25 09:52:38 davidn Exp $
+ * $Id: uucpd.c,v 1.11 1997/04/01 20:39:59 joerg Exp $
*/
#ifndef lint
@@ -164,7 +164,7 @@ void doit(struct sockaddr_in *sinp)
* 4. Password is incorrect
*/
if (pw != NULL && strcmp(pw->pw_shell, _PATH_UUCICO) == 0 &&
- pw->pw_expire && time(NULL) >= pw->pw_expire)
+ (!pw->pw_expire || time(NULL) >= pw->pw_expire))
pwdok = 1;
/* always ask for passwords to deter account guessing */
if (!pwdok || (pw->pw_passwd && *pw->pw_passwd != '\0')) {
OpenPOWER on IntegriCloud