summaryrefslogtreecommitdiffstats
path: root/usr.bin/find
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-04-02 10:45:34 +0000
committermarkm <markm@FreeBSD.org>2002-04-02 10:45:34 +0000
commit803be75ab678dcf2321078135c7e2f5c7069dabb (patch)
treeeacc94d9d959bde59356bf39933f65d83374c3f3 /usr.bin/find
parenta8e402b266a6426ec1790169fc85e7c3471f3a5c (diff)
downloadFreeBSD-src-803be75ab678dcf2321078135c7e2f5c7069dabb.zip
FreeBSD-src-803be75ab678dcf2321078135c7e2f5c7069dabb.tar.gz
There is breakage in parsedate, so revert to get_date until this can be
resolved. Reported by: paul
Diffstat (limited to 'usr.bin/find')
-rw-r--r--usr.bin/find/Makefile7
-rw-r--r--usr.bin/find/extern.h2
-rw-r--r--usr.bin/find/function.c2
3 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/find/Makefile b/usr.bin/find/Makefile
index 2384910..9cd5d02 100644
--- a/usr.bin/find/Makefile
+++ b/usr.bin/find/Makefile
@@ -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
diff --git a/usr.bin/find/extern.h b/usr.bin/find/extern.h
index 0bab1e3..70de480 100644
--- a/usr.bin/find/extern.h
+++ b/usr.bin/find/extern.h
@@ -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 **);
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index 4fe27dc..295bdbe 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -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 {
OpenPOWER on IntegriCloud