From owner-freebsd-bugs@freebsd.org Thu Dec 28 19:42:49 2017 Return-Path: Delivered-To: freebsd-bugs@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 4AC76EB04BA for ; Thu, 28 Dec 2017 19:42:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 38E2967AAA for ; Thu, 28 Dec 2017 19:42:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBSJgnNV064079 for ; Thu, 28 Dec 2017 19:42:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 222698] find(1)'s -newer expression doesn't work with symbolic links if '-P' (the default) is requested. Date: Thu, 28 Dec 2017 19:42:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Dec 2017 19:42:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222698 --- Comment #2 from Conrad Meyer --- Truss: open(".",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,01) =3D 5 (0x5) fstatfs(5,{ fstypename=3Dufs,mntonname=3D/,mntfromname=3D/dev/gpt/freebsd-r= oot,fsid=3D }) =3D 0 (0x0) fstat(5,{ mode=3Ddrwxr-xr-x ,inode=3D42455429,size=3D512,blksize=3D32768 })= =3D 0 (0x0) fchdir(0x5) =3D 0 (0x0) getdirentries(5,"\M^E\M-Q\M^G\^B\0\0\0\0\0\0\0\0"...,4096,{ 0x0 }) =3D 168 = (0xa8) fstatat(AT_FDCWD,"lINK-to-fILE",{ mode=3Dlrwxr-xr-x ,inode=3D42459218,size=3D4,blksize=3D32768 },AT_SYMLINK_NOFOLLOW) =3D 0 (0x= 0) fstatat(AT_FDCWD,"fILE2",{ mode=3D-rw-r--r-- ,inode=3D42459473,size=3D27,blksize=3D32768 },AT_SYMLINK_NOFOLLOW) =3D 0 (0= x0) fstatat(AT_FDCWD,"fILE",{ mode=3D-rw-r--r-- ,inode=3D42459474,size=3D19,blk= size=3D32768 },AT_SYMLINK_NOFOLLOW) =3D 0 (0x0) getdirentries(5,0x8006a8000,4096,{ 0x200 }) =3D 0 (0x0) close(5) =3D 0 (0x0) So we see that find(1) is correctly using AT_SYMLINK_NOFOLLOW to obtain stat information for the symlink, as well as the other files. So either the ker= nel is broken, or the comparison is somehow broken. --=20 You are receiving this mail because: You are the assignee for the bug.=