From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-6.3 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 03CF51F54E for ; Wed, 7 Sep 2022 19:15:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbiIGTPD (ORCPT ); Wed, 7 Sep 2022 15:15:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbiIGTPB (ORCPT ); Wed, 7 Sep 2022 15:15:01 -0400 Received: from siwi.pair.com (siwi.pair.com [209.68.5.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A62DA2D1F9 for ; Wed, 7 Sep 2022 12:14:59 -0700 (PDT) Received: from siwi.pair.com (localhost [127.0.0.1]) by siwi.pair.com (Postfix) with ESMTP id C2C76CA123F; Wed, 7 Sep 2022 15:14:58 -0400 (EDT) Received: from jeffhost-mbp.local (unknown [IPv6:2600:1015:b110:85b0:55e7:e1f0:9407:9b6e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by siwi.pair.com (Postfix) with ESMTPSA id 6A93DCC833D; Wed, 7 Sep 2022 15:14:58 -0400 (EDT) Subject: Re: [PATCH v4 4/4] fsmonitor: normalize FSEvents event paths to the real path To: Eric DeCosta , Eric DeCosta via GitGitGadget , "git@vger.kernel.org" References: <56cabf3be3b9e228bc948da372db4c9d11fd3926.1661962145.git.gitgitgadget@gmail.com> From: Jeff Hostetler Message-ID: Date: Wed, 7 Sep 2022 15:14:54 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: mailmunge 3.09 on 209.68.5.199 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On 9/6/22 3:33 PM, Eric DeCosta wrote: > > [...] > > 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