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: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C73B21F619 for ; Sun, 23 Feb 2020 23:56:33 +0000 (UTC) Received: from localhost ([::1]:58004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j616u-0001u4-MZ for normalperson@yhbt.net; Sun, 23 Feb 2020 18:56:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40911) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j616r-0001tj-Fl for bug-gnulib@gnu.org; Sun, 23 Feb 2020 18:56:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j616q-0004JM-6b for bug-gnulib@gnu.org; Sun, 23 Feb 2020 18:56:28 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:42888) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j616q-0004Ir-1E for bug-gnulib@gnu.org; Sun, 23 Feb 2020 18:56:28 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 53FE316009E; Sun, 23 Feb 2020 15:56:26 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dZ1neW_3R3T0; Sun, 23 Feb 2020 15:56:25 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A62871600A4; Sun, 23 Feb 2020 15:56:25 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YadQYtoIg-0h; Sun, 23 Feb 2020 15:56:25 -0800 (PST) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 834D416009E; Sun, 23 Feb 2020 15:56:25 -0800 (PST) Subject: Re: [PATCH] fchmodat, lchmod: port to buggy Linux filesystems To: Bruno Haible References: <20200213184209.34020-1-eggert@cs.ucla.edu> <2681568.EWPfcCKDUL@omega> <9cfa2499-f466-065f-4f32-7f68523bde91@cs.ucla.edu> <2690728.gVUGnRkd8D@omega> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <3d21d85b-975d-f67c-d555-e41abf44743b@cs.ucla.edu> Date: Sun, 23 Feb 2020 15:56:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <2690728.gVUGnRkd8D@omega> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On 2/23/20 2:58 AM, Bruno Haible wrote: > the file doc/glibc-functions/lchmod.texi still says > > ... > This function always fails with @code{errno} set to @code{ENOSYS}, > even when the file is not a symbolic link: > GNU/Linux with glibc 2.31. > > Overriding the system's lchmod function requires the case REPLACE_LCHMOD=1. Hmm, why? 'configure' says that GNU/Linux functions that always fail with errno==ENOSYS do not exist, i.e., 'configure' sets HAVE_LCHMOD=0 on GNU/Linux. This convention is used often by Autoconf and Gnulib. And if HAVE_LCHMOD=0 why would we want REPLACE_LCHMOD=1?