Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Sep 2017 14:53:03 +0200
From:      Harry Schmalzbauer <freebsd@omnilan.de>
To:        freebsd-stable@freebsd.org
Subject:   find(1)'s "newer" primary expression gives wrong results with symbolic links
Message-ID:  <59CF93AF.7000804@omnilan.de>

next in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59CF93AF.7000804>