aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/find
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-04-02 10:45:34 +0000
committerMark Murray <markm@FreeBSD.org>2002-04-02 10:45:34 +0000
commit48d09ba63fcd53bd779cd20515179bc914ca4161 (patch)
treeeacc94d9d959bde59356bf39933f65d83374c3f3 /usr.bin/find
parentc6facae4d901717d594b9bbde111d4b0236dac89 (diff)
Notes
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 238491027ab2..9cd5d0244f16 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 0bab1e3b4ac2..70de480cca99 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 4fe27dcd579b..295bdbe2856f 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 {