Date: Thu, 28 Dec 2017 19:42:49 +0000 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. Message-ID: <bug-222698-8-l0kX4uW1gt@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-222698-8@https.bugs.freebsd.org/bugzilla/> References: <bug-222698-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222698 --- Comment #2 from Conrad Meyer <cem@freebsd.org> --- 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222698-8-l0kX4uW1gt>