summaryrefslogtreecommitdiffstats
path: root/usr.bin/find
diff options
context:
space:
mode:
authorgavin <gavin@FreeBSD.org>2010-02-14 12:08:44 +0000
committergavin <gavin@FreeBSD.org>2010-02-14 12:08:44 +0000
commit5a426adc8be2780ce064591192b54820fc4c9dc0 (patch)
treef3d104adafb6f8c07e375283da839a9696e47469 /usr.bin/find
parent05944abaa4f550b6819bbdd2632c74c251ec3f31 (diff)
downloadFreeBSD-src-5a426adc8be2780ce064591192b54820fc4c9dc0.zip
FreeBSD-src-5a426adc8be2780ce064591192b54820fc4c9dc0.tar.gz
The -newerXB option was being interpreted the same as the -newerXm option
as a check for F_TIME2_B was missing. Fix this. PR: bin/138245 Submitted by: "David E. Cross" <crossd cs.rpi.edu> MFC after: 1 month
Diffstat (limited to 'usr.bin/find')
-rw-r--r--usr.bin/find/function.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index 51d5153..1714627 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -1164,6 +1164,8 @@ c_newer(OPTION *option, char ***argvp)
new->t_data = sb.st_ctime;
else if (option->flags & F_TIME2_A)
new->t_data = sb.st_atime;
+ else if (option->flags & F_TIME2_B)
+ new->t_data = sb.st_birthtime;
else
new->t_data = sb.st_mtime;
}
OpenPOWER on IntegriCloud