From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
On Tue, Feb 06, 2018 at 10:07:52PM +0000, Philipp Stephani wrote:
> However, when I change "file" to "/usr/bin/true" i= n the names list, the
> issue happens again (i.e. lstat and faccessat succeed for
> "/usr/bin/true/."). So this does appear to be a macOS bug, b= ut it's not
> consistently reproducible.
Try setting the permissions of the test file to 500.
It looks like if the file is only readable and executable, then the
problem occurs, but if it=E2=80=99s writable it goes away.
That=E2=80=99s why we see it in places like /usr/bin where we don=E2=80=99t= have write
permission, but can=E2=80=99t reproduce it in ~/ where we do.