From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 27 20:20:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA5EC1065691 for ; Thu, 27 Aug 2009 20:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C7AB98FC2E for ; Thu, 27 Aug 2009 20:20:01 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7RKK1xV086007 for ; Thu, 27 Aug 2009 20:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7RKK1aa086006; Thu, 27 Aug 2009 20:20:01 GMT (envelope-from gnats) Resent-Date: Thu, 27 Aug 2009 20:20:01 GMT Resent-Message-Id: <200908272020.n7RKK1aa086006@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "David E. Cross" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0178A106568E for ; Thu, 27 Aug 2009 20:10:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id E50428FC2F for ; Thu, 27 Aug 2009 20:10:43 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7RKAhWO037131 for ; Thu, 27 Aug 2009 20:10:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7RKAhnr037130; Thu, 27 Aug 2009 20:10:43 GMT (envelope-from nobody) Message-Id: <200908272010.n7RKAhnr037130@www.freebsd.org> Date: Thu, 27 Aug 2009 20:10:43 GMT From: "David E. Cross" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/138245: find -newerXB doesn't work X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 20:20:02 -0000 >Number: 138245 >Category: bin >Synopsis: find -newerXB doesn't work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 27 20:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: David E. Cross >Release: 8.0-BETA2 >Organization: >Environment: FreeBSD XXXX 8.0-BETA2 FreeBSD 8.0-BETA2 #0: Mon Aug 17 13:31:29 EDT 2009 root@XXXX:/usr/obj/usr/src/sys/HPDAVID amd64 >Description: find -newerXB is the same as find -newerXm because the if line in c_newer in function.c (in find) doesn't have a check for F_TIME2_B and just falls thtough to the default. >How-To-Repeat: Create a file, try to search newer then its birth-time... touch the file, try again.. see the different results. >Fix: *** /usr/src/usr.bin/find/function.c.orig --- /usr/src/usr.bin/find/function.c *************** *** 1155,1160 **** --- 1122,1129 ---- 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; } >Release-Note: >Audit-Trail: >Unformatted: