-/* $OpenBSD: dhcpd.h,v 1.190 2017/06/21 15:24:34 krw Exp $ */
+/* $OpenBSD: dhcpd.h,v 1.191 2017/06/22 15:08:53 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
#define REMOTE_PORT 67
#define INTERNALSIG INT_MAX
#define DB_TIMEFMT "%w %Y/%m/%d %T UTC"
-#define BAD_DB_TIMEFMT "%u %Y/%m/%d %T"
-#define OLD_DB_TIMEFMT "%w %Y/%m/%d %T"
struct option {
char *name;
-/* $OpenBSD: parse.c,v 1.52 2017/06/19 19:28:35 krw Exp $ */
+/* $OpenBSD: parse.c,v 1.53 2017/06/22 15:08:53 krw Exp $ */
/* Common parser code for dhcpd and dhclient. */
memset(&tm, 0, sizeof(tm)); /* 'cuz strptime ignores tm_isdt. */
p = strptime(timestr, DB_TIMEFMT, &tm);
if (p == NULL || *p != '\0') {
- p = strptime(timestr, OLD_DB_TIMEFMT, &tm);
- if (p == NULL || *p != '\0') {
- p = strptime(timestr, BAD_DB_TIMEFMT, &tm);
- if (p == NULL || *p != '\0') {
- parse_warn("unparseable time string");
- return (0);
- }
- }
+ parse_warn("unparseable time string");
+ return (0);
}
guess = timegm(&tm);