summaryrefslogtreecommitdiff
path: root/usr.bin/find/function.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-03 15:21:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-03 15:21:10 +0000
commit1f0f0782a69d9e21246f0e6257b38a6575379637 (patch)
tree054d0cad19a400aa82d7a939226f45d995dadcc7 /usr.bin/find/function.c
parent91e3f67881f57116b60850d59b0760ff3e34c1ae (diff)
Fix pasto in -anewer and -cnewer options that caused them to behave
as -newer; Dave Horsfall
Diffstat (limited to 'usr.bin/find/function.c')
-rw-r--r--usr.bin/find/function.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index 446b21e57b8..17d443c8377 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: function.c,v 1.23 2002/02/17 19:42:30 millert Exp $ */
+/* $OpenBSD: function.c,v 1.24 2002/05/03 15:21:09 millert Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)function.c 8.1 (Berkeley) 6/6/93";*/
-static char rcsid[] = "$OpenBSD: function.c,v 1.23 2002/02/17 19:42:30 millert Exp $";
+static char rcsid[] = "$OpenBSD: function.c,v 1.24 2002/05/03 15:21:09 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -1047,7 +1047,7 @@ c_anewer(filename)
if (stat(filename, &sb))
err(1, "%s", filename);
- new = palloc(N_NEWER, f_newer);
+ new = palloc(N_NEWER, f_anewer);
memcpy(&new->t_data, &sb.st_atimespec, sizeof(struct timespec));
return (new);
}
@@ -1081,7 +1081,7 @@ c_cnewer(filename)
if (stat(filename, &sb))
err(1, "%s", filename);
- new = palloc(N_NEWER, f_newer);
+ new = palloc(N_NEWER, f_cnewer);
memcpy(&new->t_data, &sb.st_ctimespec, sizeof(struct timespec));
return (new);
}