From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by sourceware.org (Postfix) with ESMTPS id 2FD623858407 for ; Thu, 20 Jan 2022 15:17:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2FD623858407 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=opensuse.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cristianrodriguez.net Received: by mail-wm1-f41.google.com with SMTP id c2so12815198wml.1 for ; Thu, 20 Jan 2022 07:17:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7Gd+rTAX85DzJGfWqjAEaUJ+5yjKPhjKNyTfwIdZVN4=; b=Gu4CMOLXxaCiP8wjkfG9VnADplYI5DSKZNljMSu2pZDzhTbbMTQQ08DX7GVMmGgF0C hvgaCIcNK676+sLB97R/YFIKS8xC2VFbW9omp1vadxVee05F4y/2c/JRggRX+L7IauJf MriuKEbIlxfJCI4w/uSwiGDJ2DhxgFvnSrFPAAQXhnxVGfUp+s4+X/sURzgdKHjJHFIe UkInW9KD9qUzHTkn+EF2B8sTL4XhdPa42UgK+teI5y+jU93WeFrvQdrgBcbkbg6PsXWH VTPOfXyIZSBgiJPjbiseMTvn9D8hH8GNMFupVhYo+Hk0OFbEQrXjoy5l8dd4T/7kzWAd RyRA== X-Gm-Message-State: AOAM533cwJpPehZFnwENj2kj9GxIej2gfoNaVAb2drm2lo416QR4j76w opZhQhveDZkx1PZM9gt/8kt0xvSRafD2m+WKzWCf4A== X-Google-Smtp-Source: ABdhPJydTbEw0HVGsu1uL/c9gBnox8XC+Rpb6fScJ4AxZoZaWfOb0SlQ4z9PZTwCnbtS6IKT3qgrJaBH3OJgRqB2V7k= X-Received: by 2002:a5d:574a:: with SMTP id q10mr34513200wrw.455.1642691859091; Thu, 20 Jan 2022 07:17:39 -0800 (PST) MIME-Version: 1.0 References: <20220119082147.3352868-1-siddhesh@sourceware.org> <20220119082147.3352868-2-siddhesh@sourceware.org> <6b838050-35ef-f867-6553-b50016b0ba14@gotplt.org> <87h79ya21x.fsf@oldenburg.str.redhat.com> In-Reply-To: <87h79ya21x.fsf@oldenburg.str.redhat.com> From: =?UTF-8?Q?Cristian_Rodr=C3=ADguez?= Date: Thu, 20 Jan 2022 12:17:28 -0300 Message-ID: Subject: Re: [PATCH v2 1/3] support: Add helpers to create paths longer than PATH_MAX To: Florian Weimer Cc: Siddhesh Poyarekar , Siddhesh Poyarekar , libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2022 15:17:41 -0000 On Thu, Jan 20, 2022 at 11:56 AM Florian Weimer wrote: > > * Cristian Rodr=C3=ADguez: > > > On Wed, Jan 19, 2022 at 7:21 AM Siddhesh Poyarekar wrote: > >> > >> On 19/01/2022 13:51, Siddhesh Poyarekar via Libc-alpha wrote: > >> > Add new helpers support_create_and_chdir_toolong_temp_directory and > >> > support_chdir_toolong_temp_directory to create and descend into > >> > directory trees longer than PATH_MAX. > > > > Note that recentish linux kernel versions do not allow d_name 's > > larger than kernel 's PATH_MAX definition, in that case getdents > > returns EIO, this behavior is since kernel 5.5. > > NAME_MAX or PATH_MAX? d_name should be capped by NAME_MAX, but > historically it is not. PATH_MAX.. I wrote that correctly, see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?= id=3D2c6b7bcd747201441923a0d3062577a8d1fbd8f8