From owner-freebsd-stable@freebsd.org Sat Sep 30 12:53:07 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E1850E27774 for ; Sat, 30 Sep 2017 12:53:07 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 767836F84F for ; Sat, 30 Sep 2017 12:53:07 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id v8UCr4uP051551 for ; Sat, 30 Sep 2017 14:53:04 +0200 (CEST) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (s1.omnilan.de [217.91.127.234]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 2F226BE9; Sat, 30 Sep 2017 14:53:04 +0200 (CEST) Message-ID: <59CF93AF.7000804@omnilan.de> Date: Sat, 30 Sep 2017 14:53:03 +0200 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: find(1)'s "newer" primary expression gives wrong results with symbolic links Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]); Sat, 30 Sep 2017 14:53:04 +0200 (CEST) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: ; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Sep 2017 12:53:08 -0000 Hello, utilizing find(1)'s 'newer' primary expression is broken with symbolic links (for a very long time). Anyone who is using find for timestamp comparings should pay special attention regarding symbolic links. The man page states for "-P" (which ist the default), that »the file information and file type (see stat(2)) returned for each symbolic link to be those of the link itself« That's not the case, -P doesn't work as expected, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222698 for details. Hope someone with better C skills will find the root of the problem as soon as possible. I'm trying to find myself, but I'm happyly proven not to be the fastest ;-) -harry