Re: [PATCH v4 4/4] fsmonitor: normalize FSEvents event paths to the real path
- From
- Jeff Hostetler <git@jeffhostetler.com>
- Date
- Sep 7, 2022, 19:14 UTC
- Message-ID
- <c9e9b38d-b2a8-7c01-9978-0cb2fc29880f@jeffhostetler.com>
- In-Reply-To
- <BL0PR05MB55712AAD73E0B82B84AC9640D97E9@BL0PR05MB5571.namprd05.prod.outlook.com>
On 9/6/22 3:33 PM, Eric DeCosta wrote:
> >
[...]
Show 8 quoted lines
> > This is informative: > > https://developer.apple.com/forums/thread/120665 > > -Eric > >
How strange........
Have you tried the:
fcntl(F_GETPATH)
vs fcntl(F_GETPATH_NOFIRMLINK)
vs realpath()comparison suggested in the comments and does it return anything sensical? Such that we could record both spellings when the daemon starts up. I think we'd have to do it on an open fd on the worktree root directory.
Jeff
https://developer.apple.com/forums/thread/120665