There is breakage in parsedate, so revert to get_date until this can be
resolved. Reported by: paul
This commit is contained in:
parent
c6facae4d9
commit
48d09ba63f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93644
@ -2,8 +2,13 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= find
|
||||
SRCS= find.c function.c ls.c main.c misc.c operator.c option.c parsedate.y
|
||||
SRCS= find.c function.c ls.c main.c misc.c operator.c option.c \
|
||||
getdate.y
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
YFLAGS=
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
# XXX Temporary! parsedate is broken!
|
||||
.PATH: ${.CURDIR}/../../contrib/cvs/lib/
|
||||
CFLAGS+=-DHAVE_TIMEZONE
|
||||
|
@ -44,7 +44,7 @@ PLAN *not_squish(PLAN *);
|
||||
PLAN *or_squish(PLAN *);
|
||||
PLAN *paren_squish(PLAN *);
|
||||
struct timeb;
|
||||
time_t parsedate(char *, struct timeb *);
|
||||
time_t get_date(char *, struct timeb *);
|
||||
struct stat;
|
||||
void printlong(char *, char *, struct stat *);
|
||||
int queryuser(char **);
|
||||
|
@ -1000,7 +1000,7 @@ c_newer(option, argvp)
|
||||
new = palloc(option);
|
||||
/* compare against what */
|
||||
if (option->flags & F_TIME2_T) {
|
||||
new->t_data = parsedate(fn_or_tspec, (struct timeb *) 0);
|
||||
new->t_data = get_date(fn_or_tspec, (struct timeb *) 0);
|
||||
if (new->t_data == (time_t) -1)
|
||||
errx(1, "Can't parse date/time: %s", fn_or_tspec);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user