diff options
author | davidn <davidn@FreeBSD.org> | 1997-04-08 12:32:17 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1997-04-08 12:32:17 +0000 |
commit | 2bd0c6c536511e5c9f2c9fcc442b41f3665cef7a (patch) | |
tree | 6f7e10caaecd921e3b4b957183bb9360edfb0a44 /libexec/uucpd | |
parent | a380647df579e2d71e86387399d80435dfce8e8e (diff) | |
download | FreeBSD-src-2bd0c6c536511e5c9f2c9fcc442b41f3665cef7a.zip FreeBSD-src-2bd0c6c536511e5c9f2c9fcc442b41f3665cef7a.tar.gz |
Fix for expiration date test. Closes PR#3224.
Diffstat (limited to 'libexec/uucpd')
-rw-r--r-- | libexec/uucpd/uucpd.c | 4 |
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')) { |