[{"id":1763771,"web_url":"http://patchwork.ozlabs.org/comment/1763771/","msgid":"<8a8b39a3-ef2a-522e-6718-6a2343853fe2@cs.ucla.edu>","list_archive_url":null,"date":"2017-09-06T01:27:17","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":4434,"url":"http://patchwork.ozlabs.org/api/people/4434/","name":"Paul Eggert","email":"eggert@CS.UCLA.EDU"},"content":"'git am' complains about this patch because it introduces a line with a space \nbefore a tab.","headers":{"Return-Path":"<libc-alpha-return-84224-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84224-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"nIRCM5DH\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xn5YC0Mv1z9t3Z\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  6 Sep 2017 11:27:26 +1000 (AEST)","(qmail 94900 invoked by alias); 6 Sep 2017 01:27:21 -0000","(qmail 94891 invoked by uid 89); 6 Sep 2017 01:27:20 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=p1X4tnzo5lti45No\n\tj97KU7MbONExkixnb2I2Nc4d/RYRRpQoIu8xA+KFg10PCqxtO2XlHoUaGDy/vyPC\n\t0xwRgl/B2Bk+YIqHrQWzXigpOsX3SKb/4Kf9IzwdmU4/RxMr9TJ9V5Ni+mZ9JM9K\n\t3e+Ac8AjsEB2I25UZOuDGAuMIJ4=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=ZRSx0oXtYGR52m0uronl9n\n\tyt0Is=; b=nIRCM5DHNwD0iEOur/vIf3x77DRDotz0zXgAcfMJlS26OgiCq2D6WF\n\txDjs7oCERxa9nhQi0WZQkjF0JYRf9bSr4e2aqCjzpfvq4+CAXHMi8U2OlI2gKtLJ\n\tqRS4KvBD2hUf44ADqHJIENpSL2XApwWiQ3rS6ZK5Q7QUQjnC/hhnQ=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.2 required=5.0 tests=AWL, BAYES_00,\n\tRP_MATCHES_RCVD,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:164","X-HELO":"zimbra.cs.ucla.edu","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Adhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tlibc-alpha@sourceware.org","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>","From":"Paul Eggert <eggert@cs.ucla.edu>","Message-ID":"<8a8b39a3-ef2a-522e-6718-6a2343853fe2@cs.ucla.edu>","Date":"Tue, 5 Sep 2017 18:27:17 -0700","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"7bit"}},{"id":1764087,"web_url":"http://patchwork.ozlabs.org/comment/1764087/","msgid":"<3cafb614-dc83-b7e8-ec89-9cad82ae2388@linaro.org>","list_archive_url":null,"date":"2017-09-06T12:57:09","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":66065,"url":"http://patchwork.ozlabs.org/api/people/66065/","name":"Adhemerval Zanella Netto","email":"adhemerval.zanella@linaro.org"},"content":"Thanks I fixed it in my repo.\n\nOn 05/09/2017 22:27, Paul Eggert wrote:\n> 'git am' complains about this patch because it introduces a line with a space before a tab.","headers":{"Return-Path":"<libc-alpha-return-84244-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84244-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"A2Tm59Xt\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xnNsM4Gprz9sBd\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  6 Sep 2017 22:57:27 +1000 (AEST)","(qmail 67476 invoked by alias); 6 Sep 2017 12:57:21 -0000","(qmail 67460 invoked by uid 89); 6 Sep 2017 12:57:20 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=tommOiVZmW0FIe2y\n\tzwUA16ZQTxFAzjd/OJ9B8IKG1sC/Ge2RSKhgcK/5fdWLBYMr6moTwE/DykodaAGd\n\t92BM62ZGKXZGKf3dHPgGogdaxU7ydSvQskbwCrsX/VZbGm8wSzY3a50f/ES6qZ8Q\n\tX/OWnnnluQPMu6/BvwwjXx/qYVg=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=rtFkAvXy2ujTka6uk3P4R2\n\t6UWt0=; b=A2Tm59XtGME0R/BHnhwW2l9uXcRrct8btZroi8HZn+nRm2lkMxe9wn\n\tsfrdFtxwae8nCNnuIa/YYBo4Ss9Q/uFNnf3J08xeR/wxnoT0M78esNUds9ozjD+G\n\tPNPJEaChYQqz6M20AfzrfRwiKiX4i9W7901RcRYx9ydQD7XFHKNKQ=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,\n\tRCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:237","X-HELO":"mail-qt0-f181.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=WTvhHyp9XFkoNwDMaRvJPUOyB7P/MiRAU+rA4t53ouo=;\n\tb=VbYYuTRMqGHE2bh2AGWR3sJo23gQUgBeik8PzA0RnMih4DAODrg2tkeOAP1UnhaXrF\n\txLddwYR/k3CB/58HppJdlCs/B/U3Ov0+Ado2VPugpTn3FbvFMbMugZ1u4ug/9yV9QbuO\n\tZbbNbfnYXhN4hkqJCdV4K8QUiNeuZQV62kLk/g/IABJaV4NCeNZfWYfm1Nq/s2s4K2ox\n\ttWBUKbIliI2SWZhnOB76J/CKWRWluHAgwr15Srv0YndAjgu2k3T+VTsVrihZ5ULqM3MU\n\tBBrqoaf4tNvOEBPTDi7br1nMkdSlkR3fJ24EW1mJ+84s422+WmbT6vEEBIufMeppk+13\n\tGSsA==","X-Gm-Message-State":"AHPjjUjOOk0SFAG5ODLSqCnZzB9sqO3feUHwLWwrJAqNG8aCrmNUA+nA\n\tEKv0Y0odb7x7DoV+m+KYcA==","X-Google-Smtp-Source":"ADKCNb7gcL1DgxlaK2k27f3vd4HO/K1uAnWweP4dTlQQDiEh6uJChBneQCoQqasU94FzV6HSkQr9Xw==","X-Received":"by 10.200.22.201 with SMTP id y9mr3201812qtk.115.1504702632671; \n\tWed, 06 Sep 2017 05:57:12 -0700 (PDT)","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Paul Eggert <eggert@cs.ucla.edu>, libc-alpha@sourceware.org","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<8a8b39a3-ef2a-522e-6718-6a2343853fe2@cs.ucla.edu>","From":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","Message-ID":"<3cafb614-dc83-b7e8-ec89-9cad82ae2388@linaro.org>","Date":"Wed, 6 Sep 2017 09:57:09 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<8a8b39a3-ef2a-522e-6718-6a2343853fe2@cs.ucla.edu>","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"7bit"}},{"id":1765778,"web_url":"http://patchwork.ozlabs.org/comment/1765778/","msgid":"<878thop5fa.fsf@linux-m68k.org>","list_archive_url":null,"date":"2017-09-09T09:50:01","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":2170,"url":"http://patchwork.ozlabs.org/api/people/2170/","name":"Andreas Schwab","email":"schwab@linux-m68k.org"},"content":"This breaks make, it doesn't expect that glob calls gl_lstat.\n\ndir_setup_glob:\n\n  /* We don't bother setting gl_lstat, since glob never calls it.\n     The slot is only there for compatibility with 4.4 BSD.  */\n\nAndreas.","headers":{"Return-Path":"<libc-alpha-return-84411-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84411-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"cOkYus4h\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xq8Yz1chQz9s82\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  9 Sep 2017 19:50:15 +1000 (AEST)","(qmail 31774 invoked by alias); 9 Sep 2017 09:50:08 -0000","(qmail 31758 invoked by uid 89); 9 Sep 2017 09:50:07 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:references:date:in-reply-to\n\t:message-id:mime-version:content-type; q=dns; s=default; b=u8Nwv\n\tgvj1sUI/EkE375XWVRgRxZcCwhzGRZsiqJwPcfS2XbI7XkkBgMrxXZrEaH2gCwfx\n\tUyDVZqA8WAIZMiOZOunUDoLR1/t0cP3V3r7JdZNFba/eOaJbNMBFfqK4qXVugYZ9\n\t6gBPx+/ZDSkQvbMbMHBU7MgXUAEFEm1w6L0N7E=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:references:date:in-reply-to\n\t:message-id:mime-version:content-type; s=default; bh=raK8F+iLAuV\n\tWxmHB8HXfMdBrSMM=; b=cOkYus4hoJBup72LHS/1+K2qPdmEhrYe2r63OeSuOvi\n\t9ycptN6a7rN+a4ahuvtU+URLZr/WgqmCdWe5za76zbv3U55tvVkj34WjK2B8xNUa\n\tPu1/5AnfpmkZ1a47qQ9NLJdqtmYy6xYqIvuyj2xomI2RDs8HvxQnDwRTS3XV5A4c\n\t=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.8 required=5.0 tests=AWL, BAYES_00,\n\tKAM_LAZY_DOMAIN_SECURITY,\n\tRCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=","X-HELO":"mail-out.m-online.net","X-Auth-Info":"NiGkP4VAkgZEjN4mwJQTJDFq+B30n33SSPLLi0H7hCO4z5a80nEy63L5iY6q2SOM","From":"Andreas Schwab <schwab@linux-m68k.org>","To":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","Cc":"libc-alpha@sourceware.org,  Paul Eggert <eggert@cs.ucla.edu>","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>","X-Yow":"I can't think about that. It doesn't go with HEDGES in the shape of\n\tLITTLE LULU -- or ROBOTS making BRICKS...","Date":"Sat, 09 Sep 2017 11:50:01 +0200","In-Reply-To":"<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t(Adhemerval Zanella's message of \"Tue, 5 Sep 2017 17:25:16 -0300\")","Message-ID":"<878thop5fa.fsf@linux-m68k.org>","User-Agent":"Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)","MIME-Version":"1.0","Content-Type":"text/plain"}},{"id":1765788,"web_url":"http://patchwork.ozlabs.org/comment/1765788/","msgid":"<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>","list_archive_url":null,"date":"2017-09-09T11:56:25","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":66065,"url":"http://patchwork.ozlabs.org/api/people/66065/","name":"Adhemerval Zanella Netto","email":"adhemerval.zanella@linaro.org"},"content":"I give you that we should properly document what GLOB_ALTDIRFUNC\nexpects for partially initialized glob_t alternative functions, but currenyl\nglob code assumes that if GLOB_ALTDIRFUNC is set then glob_t\nfunction pointers actually points to valid implementation.\n\nSo I think this is essentially a make issue. And since make also packs\nits own glob copy from gnulib, it is matter to fix on make if and when\nit syncs with gnulib.\n\nOn 09/09/2017 11:50, Andreas Schwab wrote:\n> This breaks make, it doesn't expect that glob calls gl_lstat.\n>\n> dir_setup_glob:\n>\n>   /* We don't bother setting gl_lstat, since glob never calls it.\n>      The slot is only there for compatibility with 4.4 BSD.  */\n>\n> Andreas.\n>","headers":{"Return-Path":"<libc-alpha-return-84412-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84412-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"jbyRCJar\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xqCMp439sz9s7f\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  9 Sep 2017 21:56:38 +1000 (AEST)","(qmail 62222 invoked by alias); 9 Sep 2017 11:56:33 -0000","(qmail 62209 invoked by uid 89); 9 Sep 2017 11:56:32 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=VraoUwU/hRicINkv\n\tkGWX3bxzztyy9WCT0/yZHqZ96TdsZm7Hnuh1ujgpdSUnoZ38a7yjAADyi83nOP3E\n\tHxR5i/mhb9IwdYsf1c3CbgybYY5Trqty23aosWNcuHycviSPUOSxg0QmCXVnK0SS\n\txOynQhPzCyHtp14iN87N8Bm4Jos=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=Tmjyi+tDOKVhvkMXdggutl\n\t2TsgQ=; b=jbyRCJarR3ah1rdIddjZds98iu5PuLyf/jfaRScbzFKwHINrDMElhn\n\te4hFTGJWclR0dEawRGfvSWOrnlmnCqFszrdlzUPtxe0O6rd0znnS76j39USC+IX8\n\tTDQQu329EeJiZ8rs7bKhp9fBTb3JlKVV6a4Zwl+Ey2LjwgpteRvlw=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.5 required=5.0 tests=AWL, BAYES_00,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=","X-HELO":"mail-wm0-f44.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-transfer-encoding\n\t:content-language;\n\tbh=qPZuSDM2+DwiM4cUQa/5mnrQFPtfSXvKo9BmAY+DlAo=;\n\tb=oyHsVP6Lo5mKmqhb6cCvBRpj7QZdIqtecRQ6SB1hZWa/K0OATfy5kzwWLOSVQwnccl\n\t7OPo83BjdGSVlAghh2813sAVQP7+BTtHf1RTnKE6SmD6z76ufHlov0M3I7owZbYu2uB9\n\tZivOBHrguTlEcEogSErhdmNgGY2TwNauxOQZqCwtWWEMJOEiYdN4VAP+1Ci6IaHHAeHp\n\tXcfQniis8RJGB5E/da++zvzOo80+vt/YktJBOIc9z7VFPW9Ng71gMhpLuVrTfMtG43PG\n\tntGCm3SOsw9D7ImtgGgnZ7kr6LPRuVcvPKZS9UIxdAZvOD4CWZw09d5vRwor2KQW1Lo4\n\tObVA==","X-Gm-Message-State":"AHPjjUg1nzSZMLcsk8vNIRpDibGvNeq5d9MApYQRNDuXkf3bQLaK80lU\n\t4PdPCKID61XAfdIqTDKMdJIgCA==","X-Google-Smtp-Source":"AOwi7QAQ6u57t8yqa6ShSJqPIYwe1lRMfZ5KSNAHc8v/nA0ffnO7uitA9z3VKn+vJOzjl6B7BPh7BA==","X-Received":"by 10.28.143.208 with SMTP id r199mr3821438wmd.39.1504958187690; \n\tSat, 09 Sep 2017 04:56:27 -0700 (PDT)","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Andreas Schwab <schwab@linux-m68k.org>","Cc":"libc-alpha@sourceware.org, Paul Eggert <eggert@cs.ucla.edu>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>","From":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","Message-ID":"<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>","Date":"Sat, 9 Sep 2017 13:56:25 +0200","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<878thop5fa.fsf@linux-m68k.org>","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"quoted-printable"}},{"id":1765827,"web_url":"http://patchwork.ozlabs.org/comment/1765827/","msgid":"<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>","list_archive_url":null,"date":"2017-09-09T17:01:56","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":4434,"url":"http://patchwork.ozlabs.org/api/people/4434/","name":"Paul Eggert","email":"eggert@CS.UCLA.EDU"},"content":"Adhemerval Zanella wrote:\n> since make also packs\n> its own glob copy from gnulib, it is matter to fix on make if and when\n> it syncs with gnulib.\n\nNo, GNU Make uses glibc glob if it passes the compatibility tests in \n'configure', which it does. So previously-built instances of GNU make will \nlikely crash if run with a glibc containing the proposed symlink changes. Even \nif you rebuild GNU Make from scratch it will still crash, because glibc glob \nwill pass GNU Make's tests even with the patch.\n\nWe could fix this by incrementing _GNU_GLOB_INTERFACE_VERSION to 2 (causing GNU \nMake's configure-time test to fail), but this is a serious step that requires \nchanging the libc.so major version number, creating backwards-compatibility \nfunctions for the old behavior, etc. I doubt whether the symlink glitch with \n'glob' is worth all this effort.\n\nHow about the following idea instead: establish two new flags GLOB_FOLLOW and \nGLOB_NOFOLLOW, where the caller specifies whether symlinks should be followed. \nThe default is system-dependent. For glibc the default is GLOB_FOLLOW (we can \neven make GLOB_FOLLOW zero). For FreeBSD the default would be GLOB_NOFOLLOW, \nassuming they like the idea of supporting these flags. This maintains \nbackward-compatibility for both kinds of platforms. For application code \npreferring GLOB_NOFOLLOW semantics if available, a simple:\n\n#include <glob.h>\n#ifndef GLOB_NOFOLLOW\n# define GLOB_NOFOLLOW 0\n#endif\n\nwill do, as long as all calls go glob specify 'GLOB_NOFOLLOW'. We can implement \nthis idea first in Gnulib and then propose it for glibc.\n\nAnyway, I'll submit a bug report to GNU Make, since it should not be assuming \nthis implementation detail of glibc, regardless of what we decide about the \nabove matter. However, it will be at best many years before we can assume this \nbug is fixed in the wild.","headers":{"Return-Path":"<libc-alpha-return-84414-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84414-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"ubZaafDW\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xqL8N3JsMz9s7f\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 10 Sep 2017 03:02:11 +1000 (AEST)","(qmail 94236 invoked by alias); 9 Sep 2017 17:02:04 -0000","(qmail 94227 invoked by uid 89); 9 Sep 2017 17:02:04 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=PjBeziqzxp2wlXjX\n\t4slMqzcmjJjAMmOJqwng9iotpCZKEjqjzEO48js7zJr7SbJ1Lj29pqHvSY4jv1XV\n\t/JXOQu2WfRERStMnTC/n4s16hIMOrUmJtGCPhvR/FvHlHs+YijM2IW8ragIY2bAC\n\tqCiv1o9pA5zs6S21U4vfQK5gpj0=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=abyPlVZ/FZqdn6lxUKuZwA\n\tVk4vo=; b=ubZaafDWTt3bMSVX650wf7VwsU2GRFQPsUSoKfkRxCc/zfo+fj5DUc\n\tuLlu5I2XywTwtJAXljw17g+p3PfrGlhhNt5+B2ENbPMmEGXRcgcQO5Egni1TYQ6M\n\ttYmDPxUWCfHbYELLVJ/zIMz7JIdYhswAITVswNP7qrKK+CQ66hNUI=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.3 required=5.0 tests=AWL, BAYES_00,\n\tRP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=","X-HELO":"zimbra.cs.ucla.edu","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Adhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tAndreas Schwab <schwab@linux-m68k.org>","Cc":"libc-alpha@sourceware.org","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>","From":"Paul Eggert <eggert@cs.ucla.edu>","Message-ID":"<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>","Date":"Sat, 9 Sep 2017 10:01:56 -0700","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"quoted-printable"}},{"id":1765828,"web_url":"http://patchwork.ozlabs.org/comment/1765828/","msgid":"<CAKCAbMiL5OsuVSECU62HpYFM7sTNxCDMepkg+r_dxgyJdfjn1g@mail.gmail.com>","list_archive_url":null,"date":"2017-09-09T17:10:56","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":65878,"url":"http://patchwork.ozlabs.org/api/people/65878/","name":"Zack Weinberg","email":"zackw@panix.com"},"content":"On Sat, Sep 9, 2017 at 1:01 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:\n> How about the following idea instead: establish two new flags GLOB_FOLLOW\n> and GLOB_NOFOLLOW, where the caller specifies whether symlinks should be\n> followed. The default is system-dependent. For glibc the default is\n> GLOB_FOLLOW (we can even make GLOB_FOLLOW zero). For FreeBSD the default\n> would be GLOB_NOFOLLOW, assuming they like the idea of supporting these\n> flags. This maintains backward-compatibility for both kinds of platforms.\n> For application code preferring GLOB_NOFOLLOW semantics if available, a\n> simple:\n>\n> #include <glob.h>\n> #ifndef GLOB_NOFOLLOW\n> # define GLOB_NOFOLLOW 0\n> #endif\n>\n> will do, as long as all calls go glob specify 'GLOB_NOFOLLOW'. We can\n> implement this idea first in Gnulib and then propose it for glibc.\n\nThis also sounds like a lot of complexity.  With the bug in Make, is\ngl_lstat garbage or is it NULL?  We could have the glob implementation\ncheck for NULL.\n\nzw","headers":{"Return-Path":"<libc-alpha-return-84415-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84415-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"oNXMqAFa\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xqLLf0MCZz9s3w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 10 Sep 2017 03:11:05 +1000 (AEST)","(qmail 71804 invoked by alias); 9 Sep 2017 17:11:00 -0000","(qmail 71785 invoked by uid 89); 9 Sep 2017 17:11:00 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; q=dns; s=default; b=KHaH\n\t4dVCLDdEgtl3yNj/sqDgCom7TrvEBzdG92s65YBOk6l8pUoopnc1UND1TJe5s/ti\n\tqmkIri+sB02TmF7JdwKhi6YJW3qu1ZICmnKCww7msnLjPCnOUIagArH3HomUTSST\n\tnKIpCvGhI/Fyb1P9s0jwvp7T9QoNMpv7nDUAF9g=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; s=default; bh=CIL7VYllre\n\tm9oRsStM8py0T8Ebk=; b=oNXMqAFaNeoenqI0a6jj7FMQ1uYyHw2NCnpbnNrqYg\n\tNRQXKQRmPfemacd0JzGGUTPNH9QLIyTYVB+/6WkxYHftIpNPNy2MJKA3XyDBHeLM\n\tFvIMmYG1KG7t03esiJxWdBsGpCbX92MvKKjMsYbYia9ppPI7Tn687MzKqpmZDcMg\n\tM=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.4 required=5.0 tests=AWL, BAYES_00,\n\tRCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=","X-HELO":"mailbackend.panix.com","X-Gm-Message-State":"AHPjjUivfPIgt7GxcGQ8gQkKLjWcaSilFhDLUmukuM+BvK9ParXv3uPW\n\tDrJKdUbvt3r0gKJEbwuUtqbLLkpChQ==","X-Google-Smtp-Source":"AOwi7QDPFYKvAZ6jwjoeDN62KGP5TNp06s7dipcHqQYIyS7AGvMz8GTUbBclATO/NFfCwpa1lBZP7Wtax+8Cgp1lnJE=","X-Received":"by 10.202.73.65 with SMTP id w62mr7138101oia.173.1504977056778; \n\tSat, 09 Sep 2017 10:10:56 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>","From":"Zack Weinberg <zackw@panix.com>","Date":"Sat, 9 Sep 2017 13:10:56 -0400","X-Gmail-Original-Message-ID":"<CAKCAbMiL5OsuVSECU62HpYFM7sTNxCDMepkg+r_dxgyJdfjn1g@mail.gmail.com>","Message-ID":"<CAKCAbMiL5OsuVSECU62HpYFM7sTNxCDMepkg+r_dxgyJdfjn1g@mail.gmail.com>","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Paul Eggert <eggert@cs.ucla.edu>","Cc":"Adhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tAndreas Schwab <schwab@linux-m68k.org>, \n\tGNU C Library <libc-alpha@sourceware.org>","Content-Type":"text/plain; charset=\"UTF-8\""}},{"id":1765830,"web_url":"http://patchwork.ozlabs.org/comment/1765830/","msgid":"<874lsbpyve.fsf@linux-m68k.org>","list_archive_url":null,"date":"2017-09-09T17:26:13","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":2170,"url":"http://patchwork.ozlabs.org/api/people/2170/","name":"Andreas Schwab","email":"schwab@linux-m68k.org"},"content":"On Sep 09 2017, Zack Weinberg <zackw@panix.com> wrote:\n\n> This also sounds like a lot of complexity.  With the bug in Make, is\n> gl_lstat garbage or is it NULL?\n\nIt is uninitialized.\n\nAndreas.","headers":{"Return-Path":"<libc-alpha-return-84416-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84416-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"X3dNHATc\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xqLhL3kK5z9t16\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 10 Sep 2017 03:26:26 +1000 (AEST)","(qmail 5815 invoked by alias); 9 Sep 2017 17:26:20 -0000","(qmail 5805 invoked by uid 89); 9 Sep 2017 17:26:20 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:references:date:in-reply-to\n\t:message-id:mime-version:content-type; q=dns; s=default; b=serGb\n\tODO7xAm3aqlSIpExJ0F/gppwjjvZzPLFEczD8g9u/GoglHr9eNUh5IcQwlSgrcqw\n\tW9kNd47FroNL7DpociZ3anoNlcKXi6hpgRA/AiDlU+30WDyNoeU60WV3cC4MWxZw\n\tVP1gFTnEM7XV2H+4Kj8zvaPqFGE3+U3si8fMvc=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:from:to:cc:subject:references:date:in-reply-to\n\t:message-id:mime-version:content-type; s=default; bh=9egeUt5leJQ\n\twrT/qYfrJTATGofs=; b=X3dNHATcCFgF1rEthwoi47FEYiUsCDwumJdKC9+j7dV\n\t73HunjC1XWLu+YWRJEhUGIPFoafRiNfh6WRIA1tAPJv80U3yTerVtOCj7Pz61vZq\n\teKNR7uQbmUOog3kc9trRTHPNl8ZFxraSuoGVt0BKy4Y8MRcFanTEd8Ox/k86ZrOs\n\t=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.8 required=5.0 tests=AWL, BAYES_00,\n\tKAM_LAZY_DOMAIN_SECURITY,\n\tRCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=","X-HELO":"mail-out.m-online.net","X-Auth-Info":"t0YJfhnZdOepLVhc6QBlBeW15mnXvks89aV8RJKhssPaJsw87QYjSvnY0h817Zfz","From":"Andreas Schwab <schwab@linux-m68k.org>","To":"Zack Weinberg <zackw@panix.com>","Cc":"Paul Eggert <eggert@cs.ucla.edu>,\n\tAdhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<CAKCAbMiL5OsuVSECU62HpYFM7sTNxCDMepkg+r_dxgyJdfjn1g@mail.gmail.com>","X-Yow":"Mr and Mrs PED, can I borrow 26.7% of the RAYON TEXTILE production\n\tof the INDONESIAN archipelago?","Date":"Sat, 09 Sep 2017 19:26:13 +0200","In-Reply-To":"<CAKCAbMiL5OsuVSECU62HpYFM7sTNxCDMepkg+r_dxgyJdfjn1g@mail.gmail.com>\n\t(Zack Weinberg's message of \"Sat, 9 Sep 2017 13:10:56 -0400\")","Message-ID":"<874lsbpyve.fsf@linux-m68k.org>","User-Agent":"Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)","MIME-Version":"1.0","Content-Type":"text/plain"}},{"id":1765831,"web_url":"http://patchwork.ozlabs.org/comment/1765831/","msgid":"<CAKCAbMgvNuxdqs0kbSHt4aPDs0W56Mc5wnsy6Kg9gULdCrAB5Q@mail.gmail.com>","list_archive_url":null,"date":"2017-09-09T17:33:01","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":65878,"url":"http://patchwork.ozlabs.org/api/people/65878/","name":"Zack Weinberg","email":"zackw@panix.com"},"content":"On Sat, Sep 9, 2017 at 1:26 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:\n> On Sep 09 2017, Zack Weinberg <zackw@panix.com> wrote:\n>\n>> This also sounds like a lot of complexity.  With the bug in Make, is\n>> gl_lstat garbage or is it NULL?\n>\n> It is uninitialized.\n\nDrat.","headers":{"Return-Path":"<libc-alpha-return-84417-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84417-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"IgCxqhzU\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xqLrB4Qj2z9t2r\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 10 Sep 2017 03:33:14 +1000 (AEST)","(qmail 35674 invoked by alias); 9 Sep 2017 17:33:07 -0000","(qmail 35662 invoked by uid 89); 9 Sep 2017 17:33:06 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; q=dns; s=default; b=hfWW\n\tlnNtA13qpjf6taDc3TOuVL5qe7KILrtfUvcluMdE2vz4wSJwtT88ytrTG70Pz/xC\n\twnqhsN4nTynJ8qBXL0X6xhqawzxajvo+b82o6tpggEYJhvGB/R/KvM1BpfmGv2nn\n\thfTFhCHj9icI7spbnGTKN2uIdAtnjqBRlaIZBYQ=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; s=default; bh=12zrKVArJi\n\t8vXgaY6P5uzxSNt3U=; b=IgCxqhzU5mW6+xWFuqyJood1jgY/dd8fry00Bq3/bx\n\tuuObnSpZxhCDOqfoAUotj8x/2YqSNn6Hx+tOzrKFB8aP6zcun50KeUbMWAD+i4We\n\tBmSsvaCWE1Zz0RlFULQmYNwPXf7SAozYA9sI3l11DadvYXQg0f1ngO8NraVo+cvh\n\t0=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.4 required=5.0 tests=AWL, BAYES_00,\n\tRCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:347","X-HELO":"mailbackend.panix.com","X-Gm-Message-State":"AHPjjUivpyjeqpFTxCYeredNWXoVUMBdqmigxL4e1giKILR4JPedn90G\n\tQ77ceiREBkVYGixsDbf9ioi6E/S7CA==","X-Google-Smtp-Source":"AOwi7QAzLkgy5MFIsk4N3r6kzprAGQoHalBzK6sk9fzS0ieNBsssSaxhwM3ohraST5IX1mZAEhmO1/ILAfIIRSKsTN4=","X-Received":"by 10.202.105.135 with SMTP id\n\te129mr6120205oic.222.1504978382383; \n\tSat, 09 Sep 2017 10:33:02 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<874lsbpyve.fsf@linux-m68k.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<CAKCAbMiL5OsuVSECU62HpYFM7sTNxCDMepkg+r_dxgyJdfjn1g@mail.gmail.com>\n\t<874lsbpyve.fsf@linux-m68k.org>","From":"Zack Weinberg <zackw@panix.com>","Date":"Sat, 9 Sep 2017 13:33:01 -0400","X-Gmail-Original-Message-ID":"<CAKCAbMgvNuxdqs0kbSHt4aPDs0W56Mc5wnsy6Kg9gULdCrAB5Q@mail.gmail.com>","Message-ID":"<CAKCAbMgvNuxdqs0kbSHt4aPDs0W56Mc5wnsy6Kg9gULdCrAB5Q@mail.gmail.com>","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Andreas Schwab <schwab@linux-m68k.org>","Cc":"Paul Eggert <eggert@cs.ucla.edu>,\n\tAdhemerval Zanella <adhemerval.zanella@linaro.org>, \n\tGNU C Library <libc-alpha@sourceware.org>","Content-Type":"text/plain; charset=\"UTF-8\""}},{"id":1765915,"web_url":"http://patchwork.ozlabs.org/comment/1765915/","msgid":"<403decc7-e039-9be1-fb44-25d611540156@linaro.org>","list_archive_url":null,"date":"2017-09-10T08:19:03","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":66065,"url":"http://patchwork.ozlabs.org/api/people/66065/","name":"Adhemerval Zanella Netto","email":"adhemerval.zanella@linaro.org"},"content":"On 09/09/2017 19:01, Paul Eggert wrote:\n> Adhemerval Zanella wrote:\n>> since make also packs\n>> its own glob copy from gnulib, it is matter to fix on make if and when\n>> it syncs with gnulib.\n>\n> No, GNU Make uses glibc glob if it passes the compatibility tests in\n> 'configure', which it does. So previously-built instances of GNU make\n> will likely crash if run with a glibc containing the proposed symlink\n> changes. Even if you rebuild GNU Make from scratch it will still\n> crash, because glibc glob will pass GNU Make's tests even with the patch.\n>\n> We could fix this by incrementing _GNU_GLOB_INTERFACE_VERSION to 2\n> (causing GNU Make's configure-time test to fail), but this is a\n> serious step that requires changing the libc.so major version number,\n> creating backwards-compatibility functions for the old behavior, etc.\n> I doubt whether the symlink glitch with 'glob' is worth all this effort.\n>\n> How about the following idea instead: establish two new flags\n> GLOB_FOLLOW and GLOB_NOFOLLOW, where the caller specifies whether\n> symlinks should be followed. The default is system-dependent. For\n> glibc the default is GLOB_FOLLOW (we can even make GLOB_FOLLOW zero).\n> For FreeBSD the default would be GLOB_NOFOLLOW, assuming they like the\n> idea of supporting these flags. This maintains backward-compatibility\n> for both kinds of platforms. For application code preferring\n> GLOB_NOFOLLOW semantics if available, a simple:\n>\n> #include <glob.h>\n> #ifndef GLOB_NOFOLLOW\n> # define GLOB_NOFOLLOW 0\n> #endif\n>\n> will do, as long as all calls go glob specify 'GLOB_NOFOLLOW'. We can\n> implement this idea first in Gnulib and then propose it for glibc.\n>\n> Anyway, I'll submit a bug report to GNU Make, since it should not be\n> assuming this implementation detail of glibc, regardless of what we\n> decide about the above matter. However, it will be at best many years\n> before we can assume this bug is fixed in the wild.\nI would prefer to avoid adding a new flag, but for this specific issue I\ndo not see a better\nsolution (as you have said I also agree bumping interface version does\nnot worth the\ntrouble).  What really bothers me is the motivation to actually support\nit is to maintain\ncompatibility with a undefined use of a not well documented interface\n(which imho is\nclearly a bug in 'make' usage). This will be another adhoc gnu\nextension, which\nmost likely won't be used anywhere besides on make itself (and the\nsystem-dependent\nsemantic will also lead to more confusion).\n\nAnother option is to add a compat glob symbol with previous semantic\n(without\nactually bumping _GNU_GLOB_INTERFACE_VERSION). It still won't help new\n'make'\nbuilds against newer glibc (not without fixing make anyway), so I am not\nsure if\nis feasible solution.","headers":{"Return-Path":"<libc-alpha-return-84419-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84419-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"r7Xbx4vb\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xqkVZ3pBCz9sNc\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 10 Sep 2017 18:19:17 +1000 (AEST)","(qmail 122647 invoked by alias); 10 Sep 2017 08:19:10 -0000","(qmail 122420 invoked by uid 89); 10 Sep 2017 08:19:09 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=dpBuvDZ6cNf+68/R\n\tararLdi6EgZCIDIqNGuw6Xpz0R2CfNgNJwYNYMW15BNUwc9PjJGj9rc3WRbnIdpw\n\tKlHWGj+s9UaO+vjLhlE6mxjrfaDTthQDutU5Q78tWScpvWVEqEcAbubmfWzV1xpT\n\tIK1lhr+V311ZC1S4ygVkZb3Et7k=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=j2TT2RKZMvQ9Ad6Mml8yEk\n\tiFAlE=; b=r7Xbx4vbRO1A2so6Ri+Z0Du1jtqrGLk5REW+gcob/cJgK34CkqHbYw\n\tjGBQzPSPokeUAMv8NsDv0AdlDf1G7vpJ70Om6tAg5wrF0chACSB7nE23DMVwB5Av\n\tvfUEZdLoEqTZeB2hmfnPlEqAah7GEB2gMHz1zlPdMN0J36zJPB6O8=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.4 required=5.0 tests=AWL, BAYES_00,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=","X-HELO":"mail-wr0-f178.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-transfer-encoding\n\t:content-language;\n\tbh=fkMMJDVQGmCSAiavReQMy0i+sU1Z4CPSSj9/PYGIPfk=;\n\tb=Drn4MPvsbIDxneFZwv5aN1b0z9fNuIKlxTVWCJavf8gZTmVtK59eaJWHr5my8N0+Yj\n\t5ULpKFtk6ma93N6fdkbck82gNleYdIESN9Kmtg/WINS7NJs4fGi+EK0f+cStJfAstGAC\n\tN0NgJne+n0HJ/EKGMHJVGgoxdbm8DRoIlWjMlJtAkm1vKPZhHE2+unwKsVzGqh5WMWfy\n\t9ewpHKMGK4g3odM8LqDWiD4g/Amy7oEO4zjJKbNDvslsODXMaIbh3cGIVdcYa5ZMNByA\n\tusocGxuBVQ161exQGlkU1PtQ9ebj3IbH5H852+i+k5sgxrKujHm1RMMRpWtBPcCjENtc\n\tPEoQ==","X-Gm-Message-State":"AHPjjUgqRBFLHEpUAww6B9Jr3Y78mmzu+K4qXQWNSwycV70vvqPsFvbk\n\tdJrl0urzXvhcK0sNPn72hA==","X-Google-Smtp-Source":"ADKCNb6H8NB0I8vefyphlGPo1lHjJP5DdSRYwBVSUvbGTIX12Qfeo7m3YM7/t1aDvYhFYvjKIUsReg==","X-Received":"by 10.223.169.247 with SMTP id b110mr5472116wrd.31.1505031545501;\n\tSun, 10 Sep 2017 01:19:05 -0700 (PDT)","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Paul Eggert <eggert@cs.ucla.edu>, Andreas Schwab <schwab@linux-m68k.org>","Cc":"libc-alpha@sourceware.org","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>","From":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","Message-ID":"<403decc7-e039-9be1-fb44-25d611540156@linaro.org>","Date":"Sun, 10 Sep 2017 10:19:03 +0200","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"quoted-printable"}},{"id":1765975,"web_url":"http://patchwork.ozlabs.org/comment/1765975/","msgid":"<10ad8191-8f6a-5a26-19a1-af1aa06cf810@cs.ucla.edu>","list_archive_url":null,"date":"2017-09-10T17:13:17","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":4434,"url":"http://patchwork.ozlabs.org/api/people/4434/","name":"Paul Eggert","email":"eggert@CS.UCLA.EDU"},"content":"Adhemerval Zanella wrote:\n\n> I would prefer to avoid adding a new flag,\n\nMe too.\n\n> Another option is to add a compat glob symbol with previous semantic\n> (without\n> actually bumping _GNU_GLOB_INTERFACE_VERSION).\n\nI like this option better than what I suggested. How about if you propose a \npatch along those lines?\n\nPS. I sent in a bug report for GNU Make about a half hour ago. See:\n\nhttp://lists.gnu.org/archive/html/bug-make/2017-09/msg00014.html","headers":{"Return-Path":"<libc-alpha-return-84426-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84426-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"rcm/0ctE\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xqyLx1KQSz9s7f\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 11 Sep 2017 03:13:28 +1000 (AEST)","(qmail 125832 invoked by alias); 10 Sep 2017 17:13:22 -0000","(qmail 125118 invoked by uid 89); 10 Sep 2017 17:13:22 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=bKderCHVszznMmaO\n\tRDDAbbwI1woMl6TzuhyAbMn0HH6V3LrvFwTUJxtmALqBuyweBwiUo8qRDPJXcEMN\n\tdnde89awO9IB2VkIQw62gLmGO2usR+QgUKu9jLkGcVDaSNf8qUj03X35fyEXU8aw\n\tSfnZWS5oLKtES75gmimPJD2rqsg=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=WMHq3wBn/pH2o8A1sAPCmE\n\tll8Es=; b=rcm/0ctEep7PjjNG/VO7iBmle+mRb9dbrkcyPUKTxeL4+/bG22yCMA\n\t+m/9pp0hDXedG72XnYSu7gcTcxOWYmRxt48b3Vt+orzvLGDz6jvd0kah8IwEi6un\n\tZOtyxJSpHtOvjClpesbT78yDVXrw9x8bAaaBW/pCaXYXI2jrNLrKc=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.3 required=5.0 tests=AWL, BAYES_00,\n\tRP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=","X-HELO":"zimbra.cs.ucla.edu","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Adhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tAndreas Schwab <schwab@linux-m68k.org>","Cc":"libc-alpha@sourceware.org","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>","From":"Paul Eggert <eggert@cs.ucla.edu>","Message-ID":"<10ad8191-8f6a-5a26-19a1-af1aa06cf810@cs.ucla.edu>","Date":"Sun, 10 Sep 2017 10:13:17 -0700","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<403decc7-e039-9be1-fb44-25d611540156@linaro.org>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"quoted-printable"}},{"id":1766336,"web_url":"http://patchwork.ozlabs.org/comment/1766336/","msgid":"<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>","list_archive_url":null,"date":"2017-09-11T14:33:52","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":4349,"url":"http://patchwork.ozlabs.org/api/people/4349/","name":"Joseph Myers","email":"joseph@codesourcery.com"},"content":"On Sun, 10 Sep 2017, Adhemerval Zanella wrote:\n\n> Another option is to add a compat glob symbol with previous semantic \n> (without actually bumping _GNU_GLOB_INTERFACE_VERSION). It still won't \n\nTo be clear, that's adding new symbol versions of glob and glob64 \neverywhere, making all existing versions (some configurations already have \nmore than one version of glob or glob64) ignore gl_lstat for \ncompatibility.","headers":{"Return-Path":"<libc-alpha-return-84447-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84447-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"w4aKTpD5\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrVmk4tXdz9s5L\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 00:34:14 +1000 (AEST)","(qmail 87366 invoked by alias); 11 Sep 2017 14:34:08 -0000","(qmail 87357 invoked by uid 89); 11 Sep 2017 14:34:07 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:to:cc:subject:in-reply-to:message-id\n\t:references:mime-version:content-type; q=dns; s=default; b=SYieZ\n\tECrPqe4DJpcrmXE+5Ux4pHe+dgpHAT+N1q/JYkAqHSjMFFW3S39D8nXhK/2oG8A7\n\tUoslbCbvXbcL0A3hCWLUg8FlOz1Y2fKXLiS+J3+vgQpGc+Z2nQCBZKiPyO+NL40f\n\tt8kD+0PkyOt0AC6DQld3fSassOuI9Yi4CzkmGM=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:from:to:cc:subject:in-reply-to:message-id\n\t:references:mime-version:content-type; s=default; bh=Tfk1MzUuo74\n\twnGMFXmXkLuyfEw4=; b=w4aKTpD5Cnt3jpXygX7g4b2lUeSjVzm9BDa4L9RHT4W\n\toZfAANmQdIW131MmHNG5Gf4B2Hopgt66uHIIYg828SwKWKmtYPdyj7keB8QFP1Vs\n\tkFwXUv33tmyzKGoLOpvTwKMuHk8pcNvM4qX97trP8JLMh0mDXW6cnN6BmITNpKpk\n\t=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.0 required=5.0 tests=AWL, BAYES_00,\n\tRCVD_IN_DNSWL_NONE, SPF_PASS,\n\tURIBL_RED autolearn=ham version=3.3.2 spammy=","X-HELO":"relay1.mentorg.com","Date":"Mon, 11 Sep 2017 14:33:52 +0000","From":"Joseph Myers <joseph@codesourcery.com>","To":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","CC":"Paul Eggert <eggert@cs.ucla.edu>, Andreas Schwab <schwab@linux-m68k.org>,\n\t<libc-alpha@sourceware.org>","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","In-Reply-To":"<403decc7-e039-9be1-fb44-25d611540156@linaro.org>","Message-ID":"<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>","User-Agent":"Alpine 2.20 (DEB 67 2015-01-07)","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"US-ASCII\"","X-ClientProxiedBy":"svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To\n\tsvr-ies-mbx-01.mgc.mentorg.com (139.181.222.1)"}},{"id":1766342,"web_url":"http://patchwork.ozlabs.org/comment/1766342/","msgid":"<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>","list_archive_url":null,"date":"2017-09-11T14:38:46","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":65878,"url":"http://patchwork.ozlabs.org/api/people/65878/","name":"Zack Weinberg","email":"zackw@panix.com"},"content":"On Mon, Sep 11, 2017 at 10:33 AM, Joseph Myers <joseph@codesourcery.com> wrote:\n> On Sun, 10 Sep 2017, Adhemerval Zanella wrote:\n>\n>> Another option is to add a compat glob symbol with previous semantic\n>> (without actually bumping _GNU_GLOB_INTERFACE_VERSION). It still won't\n>\n> To be clear, that's adding new symbol versions of glob and glob64\n> everywhere, making all existing versions (some configurations already have\n> more than one version of glob or glob64) ignore gl_lstat for\n> compatibility.\n\nIf this is done, the new symbol version should attempt to validate the\naltdirfuncs structure on entry, so that the buggy versions of make\n(and any other programs with the same bug) get a reliable failure\nrather than crashing only if glob thinks it needs to call gl_lstat.\nOtherwise it'll be like the memcpy mess, where people didn't notice\nthat they had a bug they needed to fix.\n\nzw","headers":{"Return-Path":"<libc-alpha-return-84448-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84448-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"C2lXz420\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrVtB37mrz9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 00:38:58 +1000 (AEST)","(qmail 9763 invoked by alias); 11 Sep 2017 14:38:51 -0000","(qmail 9753 invoked by uid 89); 11 Sep 2017 14:38:51 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; q=dns; s=default; b=DY82\n\tIEQPDpc9ARjz1L1083UgibWtdXYbxxUxXvtdso94cSFdj7CJv40Esg0YrsqOShOs\n\tOaNi/DJkTMFNBsC3BqXhshIcONXgFDb09qTxl0676Ho4UY2P4tA0jCNY1S9OdtHF\n\tE3wgqpaGruRmpJLtq62nt4HY1osSYpgPvWe7CMY=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; s=default; bh=u9C494dqBJ\n\tGCE3/KJUo9PGytLBc=; b=C2lXz4204Rj+w2w/+e16wr24+wVgdGASYm8ud2AiDL\n\tbDJsHK2Di7A1CjKu8HNEraYaQtKH81vBfedcDvnhd+nIw7UNO+nHwBZ71VXmDKJs\n\t+W3QC8b8rTBRHCNhfRJ3ocFVzvpzNuk1/Vov120Uq4z6Q97nF7xfBNnrJ0FDwch1\n\ts=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.6 required=5.0 tests=AWL, BAYES_00,\n\tRCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD, SPF_PASS,\n\tURIBL_RED autolearn=no version=3.3.2 spammy=mess","X-HELO":"mailbackend.panix.com","X-Gm-Message-State":"AHPjjUjEEpBRTvUNjZqNUOGAEwlavQ3fJmTOHlWvJLQjuMund03ujBQl\n\tjc/jCtt39aLRXuxZzeMaG10Zdvt3+g==","X-Google-Smtp-Source":"AOwi7QAobGf9k21VbeZKVnL0ONP3OsqatTurkYOqtfBqRKfvq6gVFuoJ0Jz6tGDI3nWnkH7vIxaL5mAb1o0Jwj+3Yzc=","X-Received":"by 10.202.73.65 with SMTP id w62mr12547584oia.173.1505140727162; \n\tMon, 11 Sep 2017 07:38:47 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>","From":"Zack Weinberg <zackw@panix.com>","Date":"Mon, 11 Sep 2017 10:38:46 -0400","X-Gmail-Original-Message-ID":"<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>","Message-ID":"<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Joseph Myers <joseph@codesourcery.com>","Cc":"Adhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tPaul Eggert <eggert@cs.ucla.edu>, \n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","Content-Type":"text/plain; charset=\"UTF-8\""}},{"id":1766400,"web_url":"http://patchwork.ozlabs.org/comment/1766400/","msgid":"<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>","list_archive_url":null,"date":"2017-09-11T16:53:01","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":4434,"url":"http://patchwork.ozlabs.org/api/people/4434/","name":"Paul Eggert","email":"eggert@CS.UCLA.EDU"},"content":"On 09/11/2017 07:38 AM, Zack Weinberg wrote:\n> If this is done, the new symbol version should attempt to validate the\n> altdirfuncs structure on entry\n\nI don't see how glob could do that reliably and cheaply. How does one \nvalidate that a pointer to a stat-like function is actually a pointer to \na stat-like function? All one can do is call the function and pray.","headers":{"Return-Path":"<libc-alpha-return-84455-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84455-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"wozgJoMw\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrYs373Xsz9s83\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 02:53:11 +1000 (AEST)","(qmail 34377 invoked by alias); 11 Sep 2017 16:53:05 -0000","(qmail 34362 invoked by uid 89); 11 Sep 2017 16:53:04 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=kIvGEDqYKcw1Oquf\n\tB2lf4U5CVoI+m0tt46PpXMSeKMN030vVemMeIJnTwgGdVZhDHqVGp432IeCEMxPj\n\tSW0qYGbG9MhckoQEM3zH0yJ6YPkJNf4xtaWfQngfJTgZFzeQxJlaVO0HDjBOYDd8\n\tHjZ+8y30beZNh9TYIs0ZkHsMoPM=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=tayECMqpVfp1Mk98tvQCym\n\td5RJQ=; b=wozgJoMw/GHF1nQfEb3rJa4pp6h7+Cu5VGI7QAsEo8Eh++1+yt1UHt\n\toR9vBD2okT0uHgrEBYw1wvrzgB1b/UcsTN+YYxxcgJ5iDsuF40gjxdQtfp3ci1Sw\n\tBJB/Lt9/GopZIVZHMG1rcroPutOlsZFA4h5ogS2Tt3778O4Bk1XPM=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.1 required=5.0 tests=AWL, BAYES_00,\n\tRP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=","X-HELO":"zimbra.cs.ucla.edu","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Zack Weinberg <zackw@panix.com>, Joseph Myers <joseph@codesourcery.com>","Cc":"Adhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>","From":"Paul Eggert <eggert@cs.ucla.edu>","Message-ID":"<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>","Date":"Mon, 11 Sep 2017 09:53:01 -0700","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"7bit"}},{"id":1766408,"web_url":"http://patchwork.ozlabs.org/comment/1766408/","msgid":"<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>","list_archive_url":null,"date":"2017-09-11T17:25:27","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":65878,"url":"http://patchwork.ozlabs.org/api/people/65878/","name":"Zack Weinberg","email":"zackw@panix.com"},"content":"On Mon, Sep 11, 2017 at 12:53 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:\n> On 09/11/2017 07:38 AM, Zack Weinberg wrote:\n>>\n>> If this is done, the new symbol version should attempt to validate the\n>> altdirfuncs structure on entry\n>\n>\n> I don't see how glob could do that reliably and cheaply. How does one\n> validate that a pointer to a stat-like function is actually a pointer to a\n> stat-like function? All one can do is call the function and pray.\n\nIt should be enough to make a dummy call, e.g.\n\n pglob->gl_lstat(\".\", &statbuf);\n\nzw","headers":{"Return-Path":"<libc-alpha-return-84456-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84456-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"KrKfaPym\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrZZW5fyxz9s83\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 03:25:39 +1000 (AEST)","(qmail 50149 invoked by alias); 11 Sep 2017 17:25:32 -0000","(qmail 49921 invoked by uid 89); 11 Sep 2017 17:25:32 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; q=dns; s=default; b=d7Yq\n\tzCeARxL3qv8Snsx/uxqwni6iWV/LMoBJAXcaBSawhFf4VesxK8wdbdtO67NvHJDN\n\tq1NnswLz/02yu0mLafvy25vMwqPufJWrRMAu2Q+cZYpvntb1Z+Zp8K9zhkrCzYB/\n\ttZjbVggAlgRHlZq2Kr0wr/fW+dPJdKQDewGoidg=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; s=default; bh=99MvlrRU6A\n\tdCvfZy7AsqpQ1JKQA=; b=KrKfaPymSFv8yfJRC/YblYgxwloqGU1O3AoQs6aggR\n\tbb1opZRPfojuFahOCt+/wnHVRe3yjb1GoamiseuVXEvn652nYRuoA36MPUS+kuE/\n\twb+FCfragtXOwbu4ftdSCp7EMu5IT2BbePFWb+1hicDGo40hV3/d5bxAG/i8lWFN\n\tM=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.6 required=5.0 tests=AWL, BAYES_00,\n\tRCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=","X-HELO":"mailbackend.panix.com","X-Gm-Message-State":"AHPjjUgytx7vKEqPG8svaWY6vMGzgeg8z4Lkd2dNQ0AzOmijOqp2cHmR\n\tTMUygCRCl5RE/8mnH0savHrmfhXHgg==","X-Google-Smtp-Source":"AOwi7QC+CfFGo+ik23/Mq57tqsxpHsskc9W6gQao8vS6ffR0rRJI0m3i0EJTTkWWrPtXJnyiKl7SKQV+1NWYl4pb8nc=","X-Received":"by 10.202.235.80 with SMTP id j77mr12532328oih.220.1505150727650;\n\tMon, 11 Sep 2017 10:25:27 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>","From":"Zack Weinberg <zackw@panix.com>","Date":"Mon, 11 Sep 2017 13:25:27 -0400","X-Gmail-Original-Message-ID":"<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>","Message-ID":"<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Paul Eggert <eggert@cs.ucla.edu>","Cc":"Joseph Myers <joseph@codesourcery.com>, \n\tAdhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tAndreas Schwab <schwab@linux-m68k.org>, \n\tGNU C Library <libc-alpha@sourceware.org>","Content-Type":"text/plain; charset=\"UTF-8\""}},{"id":1766419,"web_url":"http://patchwork.ozlabs.org/comment/1766419/","msgid":"<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>","list_archive_url":null,"date":"2017-09-11T17:38:21","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":4434,"url":"http://patchwork.ozlabs.org/api/people/4434/","name":"Paul Eggert","email":"eggert@CS.UCLA.EDU"},"content":"On 09/11/2017 10:25 AM, Zack Weinberg wrote:\n>\n> It should be enough to make a dummy call, e.g.\n>\n>   pglob->gl_lstat(\".\", &statbuf);\n>\n\nUnfortunately calling lstat is quite expensive on some (non-POSIX) \nplatforms, even on the working directory. So we can't do the above in \nthe Gnulib version. Besides, under the proposed patch glob is going to \nuse gl_lstat instead of gl_stat in almost all cases, so the dummy call \nwon't add much extra checking.\n\nI suppose we could valid gl_stat instead, as gl_stat usage will become \nrare (used only if GLOB_MARK is also specified, just before returning \nresults). But we don't have any code in the wild that is giving us \ninvalid gl_stat pointers, so it wouldn't be that helpful to try to \nvalidate gl_stat either.","headers":{"Return-Path":"<libc-alpha-return-84458-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84458-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"TuXjsAIn\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrZsP0y86z9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 03:38:32 +1000 (AEST)","(qmail 96148 invoked by alias); 11 Sep 2017 17:38:26 -0000","(qmail 96138 invoked by uid 89); 11 Sep 2017 17:38:25 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=ia0T+FiIdakhnGaR\n\tIA/o1wuNRjaljlsrPhpxyUqWWSHiGeWeFpeaaIvrdwPyjqeN1lFjUafFGS6GABdQ\n\td/nkrWnGZmBULDXjJQG8iMXLZNAsufK4CX6kxW4GHDX9KWcJm2Jqm31P+IiAwRtV\n\tUgkyfD/q5K0Pre+aW5Z8YAJIcEQ=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=u2gW/rAIjpiJUOmzVZ91Ys\n\t6GB7U=; b=TuXjsAInva5RnJZHLUKUgixva6vTDJmfBcS9d0weMflN+i976HJFnb\n\tuTnZFCnbTLb7nZ3wOTUGS+m6+HOxML1KnIexNlW+O/UIoOuT6BC5RsnK4t1LGczG\n\tZkdIYe/3MbEV3DFBaAzNJQ1TY3mC4ufFxWpbkpuEu+hW6QClAZ2zw=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.1 required=5.0 tests=AWL, BAYES_00,\n\tRP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=","X-HELO":"zimbra.cs.ucla.edu","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Zack Weinberg <zackw@panix.com>","Cc":"Joseph Myers <joseph@codesourcery.com>,\n\tAdhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>","From":"Paul Eggert <eggert@cs.ucla.edu>","Message-ID":"<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>","Date":"Mon, 11 Sep 2017 10:38:21 -0700","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"7bit"}},{"id":1766425,"web_url":"http://patchwork.ozlabs.org/comment/1766425/","msgid":"<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>","list_archive_url":null,"date":"2017-09-11T17:56:10","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":65878,"url":"http://patchwork.ozlabs.org/api/people/65878/","name":"Zack Weinberg","email":"zackw@panix.com"},"content":"On Mon, Sep 11, 2017 at 1:38 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:\n> On 09/11/2017 10:25 AM, Zack Weinberg wrote:\n>>\n>>\n>> It should be enough to make a dummy call, e.g.\n>>\n>>   pglob->gl_lstat(\".\", &statbuf);\n>>\n>\n> Unfortunately calling lstat is quite expensive on some (non-POSIX)\n> platforms, even on the working directory. So we can't do the above in the\n> Gnulib version.\n\nI have trouble believing this will be a measurable performance hit,\nconsidering how much other expensive work glob has to do.\n\n> Besides, under the proposed patch glob is going to use\n> gl_lstat instead of gl_stat in almost all cases, so the dummy call won't add\n> much extra checking.\n\nThe point is not to add _extra_ checking; the point is to ensure that\ngl_lstat (and gl_stat) are valid on all calls, _even if_ they wouldn't\notherwise have been used.  I'm trying to turn \"may fail at runtime\nunder rare circumstances\" into \"will definitely fail at runtime on the\nfirst use\", which is the best we can do in C.\n\n> I suppose we could valid gl_stat instead, as gl_stat usage will become rare\n> (used only if GLOB_MARK is also specified, just before returning results).\n> But we don't have any code in the wild that is giving us invalid gl_stat\n> pointers, so it wouldn't be that helpful to try to validate gl_stat either.\n\nSo here's an alternative, less thorough but perhaps also less costly\napproach: when GLOB_ALTDIRFUNCS is set, call both gl_stat and gl_lstat\non the first name that's going to be returned, even if we have no\nother reason to do this.  Optionally, memoize the function pointer and\ndon't bother making the extra call again if we recognize that it's\nknown to work.\n\n(Maybe also it would be a good idea to check up front for any NULL\ncallbacks in the ALTDIRFUNCS case.)\n\nzw","headers":{"Return-Path":"<libc-alpha-return-84459-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84459-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"LqY1WXKA\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrbFz4jxJz9s83\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 03:56:23 +1000 (AEST)","(qmail 110056 invoked by alias); 11 Sep 2017 17:56:16 -0000","(qmail 110030 invoked by uid 89); 11 Sep 2017 17:56:15 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; q=dns; s=default; b=ZmLx\n\t98+OrEj2GYX47ft337xdfzYOoS6ksS2atY6UPBLVda7u1ccsr/Y8qjHjhojc7oNB\n\ttoFgXNDb0p7JzWk9qloDyNxqUbXiSki3nJX+7THBim7g/zG3BcypSsjCaCAa7alM\n\t79QcFUPg6/qxXSt8c3F+tVfaPQDhYy891ixVoic=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc:content-type; s=default; bh=lDxWdN8X9O\n\tWjk1otbfDjGIwWl2U=; b=LqY1WXKAt52t3s0YIrRQ8bqLN4pI5gEBwjtTILF0ox\n\tRZKCW6rEPab+Zq1jBb9mDt8T2R6Q0ftII1FEhCKeCK8YhB2u94HvDzW0SVnR1MJ4\n\teTxA6gGAV7gPkMxACeJEvS9K9mat8RRCuqP56oxqobf/03fMUyPT/jZ1IjL7wvk0\n\tY=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.6 required=5.0 tests=AWL, BAYES_00,\n\tRCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=","X-HELO":"mailbackend.panix.com","X-Gm-Message-State":"AHPjjUjmK714gL7oVymHL/R9DkPSYQTAFuocraSLxSyb+jYokumxa/Pw\n\tfHT9F1FGBrsTb037Av6a0eHbsHNnkA==","X-Google-Smtp-Source":"AOwi7QCQTFXfMwLolMlW/g5B49zOfOuhsOapYqTU3C/slrV7co9f3WnFr8y1+chh61biRyrg/s8eM17I8fYDd7CNPVI=","X-Received":"by 10.202.74.143 with SMTP id\n\tx137mr11425406oia.236.1505152570953; \n\tMon, 11 Sep 2017 10:56:10 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>","From":"Zack Weinberg <zackw@panix.com>","Date":"Mon, 11 Sep 2017 13:56:10 -0400","X-Gmail-Original-Message-ID":"<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>","Message-ID":"<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Paul Eggert <eggert@cs.ucla.edu>","Cc":"Joseph Myers <joseph@codesourcery.com>, \n\tAdhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tAndreas Schwab <schwab@linux-m68k.org>, \n\tGNU C Library <libc-alpha@sourceware.org>","Content-Type":"text/plain; charset=\"UTF-8\""}},{"id":1766428,"web_url":"http://patchwork.ozlabs.org/comment/1766428/","msgid":"<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>","list_archive_url":null,"date":"2017-09-11T18:03:56","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":4434,"url":"http://patchwork.ozlabs.org/api/people/4434/","name":"Paul Eggert","email":"eggert@CS.UCLA.EDU"},"content":"On 09/11/2017 10:56 AM, Zack Weinberg wrote:\n> So here's an alternative, less thorough but perhaps also less costly\n> approach: when GLOB_ALTDIRFUNCS is set, call both gl_stat and gl_lstat\n> on the first name that's going to be returned, even if we have no\n> other reason to do this.\nSomething like that would be better, yes. Still not sure it's worth the \ntrouble. We don't know how expensive gl_stat and gl_lstat will be, in \ngeneral.","headers":{"Return-Path":"<libc-alpha-return-84460-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84460-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"h2Sl3gM7\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrbQw0rdVz9s7F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 04:04:06 +1000 (AEST)","(qmail 4523 invoked by alias); 11 Sep 2017 18:03:59 -0000","(qmail 4513 invoked by uid 89); 11 Sep 2017 18:03:59 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=ygIP32TjHKDXXyXu\n\t8SkcDXdC/sRMouLZH3M0qTI/hMp3xQBV060eVzjBTIuND0k8N2V4bTKxGRRlLZ47\n\t94YrsSnkbvxBpMTbqtN1iQLIgBJcku5ABU45LagrfxoqOIWfhKt48a5pXK6rxfCl\n\t28Htcl+kaV98v0qKPBFi1cs3w+U=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=A7Tf/oF6AkQynMfYUXVDWW\n\tNiAqQ=; b=h2Sl3gM7LTDfV6Uv+ckIAic70dEQoX0ZMx48tBUWEsl/vsBKNGunw7\n\tj2xJBMA+0Aamv5Max9FpLaxATKn6ljTxjAUfCaBSvfkiv9tnkujmeT4DsTFr9E+L\n\trwIYQolAOZppNYKQoCXCetBB+GF2m/XNO5/jsjqh44glOZ0+ofEro=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.1 required=5.0 tests=AWL, BAYES_00,\n\tRP_MATCHES_RCVD,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=H*M:5253","X-HELO":"zimbra.cs.ucla.edu","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Zack Weinberg <zackw@panix.com>","Cc":"Joseph Myers <joseph@codesourcery.com>,\n\tAdhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>","From":"Paul Eggert <eggert@cs.ucla.edu>","Message-ID":"<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>","Date":"Mon, 11 Sep 2017 11:03:56 -0700","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"7bit"}},{"id":1766500,"web_url":"http://patchwork.ozlabs.org/comment/1766500/","msgid":"<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>","list_archive_url":null,"date":"2017-09-11T20:08:54","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":66065,"url":"http://patchwork.ozlabs.org/api/people/66065/","name":"Adhemerval Zanella Netto","email":"adhemerval.zanella@linaro.org"},"content":"On 11/09/2017 15:03, Paul Eggert wrote:\n> On 09/11/2017 10:56 AM, Zack Weinberg wrote:\n>> So here's an alternative, less thorough but perhaps also less costly\n>> approach: when GLOB_ALTDIRFUNCS is set, call both gl_stat and gl_lstat\n>> on the first name that's going to be returned, even if we have no\n>> other reason to do this.\n> Something like that would be better, yes. Still not sure it's worth the trouble. We don't know how expensive gl_stat and gl_lstat will be, in general.\n\nAnother approach that does not involve adding compat symbols (which adds\na lot of code complexity inside glibc build and do not solve 'make' builds\nagainst new glibc) would to make GLOB_ALTDIRFUNCS to follow the old semantic\nof using gl_stat instead of gl_lstat while making glob without GLOB_ALTDIRFUNCS \nworks as intended.  And add another flag, GLOB_ALTDIRFUNCS2, which actually \nuses gl_lstat.\n\nIt will solve make compat issue even for build against newer glibcs with\nthe cost of making GLOB_ALTDIRFUNCS with a slight different semantic than\ndefault glob (which given the current situation is a feasible cost).","headers":{"Return-Path":"<libc-alpha-return-84466-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84466-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"LVMjpSfP\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrfCB3WT7z9s8J\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 06:09:10 +1000 (AEST)","(qmail 130171 invoked by alias); 11 Sep 2017 20:09:03 -0000","(qmail 130160 invoked by uid 89); 11 Sep 2017 20:09:03 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=y2uQ6IX56nwdeuec\n\tpdgaVwvcbOOTEqY1j93rXas+PiOt64eQ1RT846Rf5N+HJRXUTswaipvKEY1qWdJ9\n\tZtpuvm2t456Zjqc5WeYeYKBTSo9Avr6+jaWYP12MWhP80524mnPg/QUF+6HHO5xa\n\t33qDYLPsiRjbWf3iTnstV/+qe+c=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=ykg8F4J4WXpH88uEHR3TAH\n\tWa+vs=; b=LVMjpSfPu99FIjjCcBH1FqGRdL/Tw61Cdg7x7oSkYZhu/3erbklaV6\n\tTR+m3McYpoxzROk3EK0dVuTqlf7yYsguHz9EczA6EcJC/ytIUKFtPKwJ9IwoNfdb\n\tt7+UI4RVovjKv1w1IKUuO+sqcQ2s3jqp56jQJrO6N4N5SvqjWIyLk=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.4 required=5.0 tests=BAYES_00,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=","X-HELO":"mail-qk0-f173.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=KZv/9ahhWTEEqAk8UX4RFr+oSXYXD2WJveD9ovvRNfc=;\n\tb=GDdQWKMvXjOVVpu9MnZCRTFQBby0YAmSrSnmfNP817WWzWCfJXzr5QC3VN7/tugKfv\n\tFqh2OfGyx1H/ky3OSA+b247om37qm8k6rBSbbhuCM1uKVjdqLNkhwbQ7bBfrE7rMOTsc\n\tggedIafade4TuyeSY6bE1jckBFD9isZaqj12aeVqOYrdvK25qJA8VjN8qr2ksnjKugD8\n\tKLuW0ETSTa2bJOMy7iwM5lGfdsKRyGcEqG4zDngLx16HX8/sXgcEd7Riju7v1g7XaWhO\n\tAebn106GrOHnMfPzNT/I9UUvZFJs2hSQ6LWlCi3OtHLvu5eeX2M/+ySOIPvZDupNSwX2\n\tA+pw==","X-Gm-Message-State":"AHPjjUgFy8jBEZ+Pqdgj+sIKzpKaquPAXaKTMiZ5RXJxZc8rkQw7O6qU\n\tLARVuKZ5jZWzmU1HKkay9w==","X-Google-Smtp-Source":"AOwi7QDVAuz2tUWC2exo9ctn99WSZ3JmpuU7TipzQNSEQGYl+GkhtAfRmfgyd97s8xAaioeYjKwJ8Q==","X-Received":"by 10.55.73.213 with SMTP id w204mr17580847qka.215.1505160539757;\n\tMon, 11 Sep 2017 13:08:59 -0700 (PDT)","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Paul Eggert <eggert@cs.ucla.edu>, Zack Weinberg <zackw@panix.com>","Cc":"Joseph Myers <joseph@codesourcery.com>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>","From":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","Message-ID":"<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>","Date":"Mon, 11 Sep 2017 17:08:54 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"7bit"}},{"id":1767698,"web_url":"http://patchwork.ozlabs.org/comment/1767698/","msgid":"<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>","list_archive_url":null,"date":"2017-09-13T09:14:18","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":4434,"url":"http://patchwork.ozlabs.org/api/people/4434/","name":"Paul Eggert","email":"eggert@CS.UCLA.EDU"},"content":"Adhemerval Zanella wrote:\n> Another approach that does not involve adding compat symbols (which adds\n> a lot of code complexity inside glibc build and do not solve 'make' builds\n> against new glibc) would to make GLOB_ALTDIRFUNCS to follow the old semantic\n> of using gl_stat instead of gl_lstat while making glob without GLOB_ALTDIRFUNCS\n> works as intended.  And add another flag, GLOB_ALTDIRFUNCS2, which actually\n> uses gl_lstat.\n\nAlthough that's clever, it is a gratuitous source-code incompatibility with BSD, \nwhich is not a good thing. To some extent it's just GLOB_FOLLOW and \nGLOB_NOFOLLOW in disguise, and disguise is not a good thing in APIs. So I think \nI still prefer the compat symbol approach.\n\nWe'll get GNU 'Make' fixed, and I wouldn't worry overly much about people \nbuilding unpatched 'Make' with new glibc. I filed a Make bug report is here:\n\nhttp://lists.gnu.org/archive/html/bug-make/2017-09/msg00014.html","headers":{"Return-Path":"<libc-alpha-return-84538-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84538-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"BBOhF10v\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xsbZt5Xj2z9sPs\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 19:14:30 +1000 (AEST)","(qmail 94627 invoked by alias); 13 Sep 2017 09:14:23 -0000","(qmail 94614 invoked by uid 89); 13 Sep 2017 09:14:22 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=gZsSKwS8/t9YyhDs\n\tsTcYm5X4w/yuHCPZfs253OkgoGtrolZTta2thCr5R56dE4BJx1KzdgbY/iyLvSdI\n\tM2f01IE9nVzBACbPIafVS3d/a+6Fpze08A0SuJ+kxDL8WS56pp2L6rVjtyYpsdP/\n\tctRYI2XNjOZD7f3McVNEMjG88j0=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=VSHWlHuaPM2OeFsaaOne36\n\tKHMAI=; b=BBOhF10v9vWfb43ojZ4kzjYztqRPzBbcODf9HOy/xxe7zcrnViD0/i\n\ttYlJwxP3RztFQS47v/urOrbK2TWwBbElxu5w5CcnK+YT2bN36Q1YeIPAoNNwwiG9\n\tAdUjFwaVlR0JqfWXzch3h6skI56NE0DtUONuCpXiLIR0XUXoRmGHk=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.2 required=5.0 tests=AWL, BAYES_00,\n\tRP_MATCHES_RCVD,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:996","X-HELO":"zimbra.cs.ucla.edu","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Adhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tZack Weinberg <zackw@panix.com>","Cc":"Joseph Myers <joseph@codesourcery.com>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>\n\t<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>","From":"Paul Eggert <eggert@cs.ucla.edu>","Message-ID":"<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>","Date":"Wed, 13 Sep 2017 02:14:18 -0700","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"quoted-printable"}},{"id":1767839,"web_url":"http://patchwork.ozlabs.org/comment/1767839/","msgid":"<4e71b51c-3ec8-bb11-19bd-8fc27d4ede3e@linaro.org>","list_archive_url":null,"date":"2017-09-13T12:22:36","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":66065,"url":"http://patchwork.ozlabs.org/api/people/66065/","name":"Adhemerval Zanella Netto","email":"adhemerval.zanella@linaro.org"},"content":"On 13/09/2017 06:14, Paul Eggert wrote:\n> Adhemerval Zanella wrote:\n>> Another approach that does not involve adding compat symbols (which adds\n>> a lot of code complexity inside glibc build and do not solve 'make' builds\n>> against new glibc) would to make GLOB_ALTDIRFUNCS to follow the old semantic\n>> of using gl_stat instead of gl_lstat while making glob without GLOB_ALTDIRFUNCS\n>> works as intended.  And add another flag, GLOB_ALTDIRFUNCS2, which actually\n>> uses gl_lstat.\n> \n> Although that's clever, it is a gratuitous source-code incompatibility with BSD, which is not a good thing. To some extent it's just GLOB_FOLLOW and GLOB_NOFOLLOW in disguise, and disguise is not a good thing in APIs. So I think I still prefer the compat symbol approach.\n> \n> We'll get GNU 'Make' fixed, and I wouldn't worry overly much about people building unpatched 'Make' with new glibc. I filed a Make bug report is here:\n> \n> http://lists.gnu.org/archive/html/bug-make/2017-09/msg00014.html\n\nRight, I am mainly trying to avoid bring more internal glob implementation\ncomplexity to glibc, but since you says the unpatched 'Make' built\nagainst newer glibc shouldn't be a problem I think we can this way.\nI will work on it.","headers":{"Return-Path":"<libc-alpha-return-84546-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84546-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"sgbBDOJx\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xsgmD67cRz9s72\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 22:22:52 +1000 (AEST)","(qmail 21731 invoked by alias); 13 Sep 2017 12:22:46 -0000","(qmail 21719 invoked by uid 89); 13 Sep 2017 12:22:46 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=xb5StCySX5+yPn74\n\tPZCjo4TcbSgxo45wah/6L6RIzGsPDmO9YOxd/lfrxzFTwHRpR9CVYaAgqFuK0KH+\n\t1MpI5YI35buTrW6ONAwbXQLZjQaZ9nTzMKS4Il4UfOrZnEr1cH5erRhqe/F1gBvR\n\tA2kbLT8KANo6RKkbsp10Hn9If5I=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=egmR7AcXtnjQQQMOLtYaW8\n\tyCMwI=; b=sgbBDOJxp01iv/BshFXRnDhVjPffHK+VpRO7doHaQKBH+eOsdPOtqv\n\tyrraOEdnWLAcip8VAV3MfMdLoXX2G3OrytLx9Wkn5B/AT3JsTXLEmJZxkwlguDIE\n\tntD0qpeIRoOkCyVQIPxmQKUDeylsfN1EemleqloQkcZTXSzmOuueY=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.4 required=5.0 tests=BAYES_00,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1283","X-HELO":"mail-qk0-f182.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=VFTuPKe60UbPCYu/xdmeBKS7fSD3Lvuk/hPZarTZjjo=;\n\tb=IjTnQ80pSf+bUNvPJiXTam1vG82vem6JHMEE9g3G+OChNRPsQpN0hhZYF4sIkzrRYU\n\ts9/frkbNYZTpHuUgduXqJsgG5ucs33N/UxImLr0acivJSfApaWnWqJXHmBAxqziFk/aj\n\t1ulVK8jCtFIwtpc9zB44kSM50sTLGJNhwNkDA9LqXx5Ku4Qv1qGwNc7oR1PsZFrRWqmn\n\tqWF2KxtJbCW0jukwUjm4srD3c5LWft6prhbdjV7dRcF4cwhRfLJfNA7uLkYxMP+tlqDO\n\tBBZ+8IMAlPF72c5vVjKfYkZTo46NEQltM6MO/DeMHrdaylJeibc5A9rW0LUVUl8C1Lvj\n\tvBsQ==","X-Gm-Message-State":"AHPjjUj/z5Sm29R586lzJv9VmoXpn8G/vdCEujJN3kJjT9rlfACOSGiC\n\tD4klhHuESVxhHz7Y3M9T5A==","X-Google-Smtp-Source":"AOwi7QAOsMyzfypDTJybVkockeHyLlFHYGHw0gdpl6HyhYy4vPmIdj2vVXo4exiEkv9fyuYpq8HnHA==","X-Received":"by 10.55.15.96 with SMTP id z93mr3806865qkg.237.1505305361894;\n\tWed, 13 Sep 2017 05:22:41 -0700 (PDT)","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Paul Eggert <eggert@cs.ucla.edu>, Zack Weinberg <zackw@panix.com>","Cc":"Joseph Myers <joseph@codesourcery.com>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>\n\t<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>\n\t<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>","From":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","Message-ID":"<4e71b51c-3ec8-bb11-19bd-8fc27d4ede3e@linaro.org>","Date":"Wed, 13 Sep 2017 09:22:36 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"8bit"}},{"id":1768488,"web_url":"http://patchwork.ozlabs.org/comment/1768488/","msgid":"<59BA546C.8060904@arm.com>","list_archive_url":null,"date":"2017-09-14T10:05:32","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":65667,"url":"http://patchwork.ozlabs.org/api/people/65667/","name":"Szabolcs Nagy","email":"szabolcs.nagy@arm.com"},"content":"On 13/09/17 13:22, Adhemerval Zanella wrote:\n> On 13/09/2017 06:14, Paul Eggert wrote:\n>> Adhemerval Zanella wrote:\n>>> Another approach that does not involve adding compat symbols (which adds\n>>> a lot of code complexity inside glibc build and do not solve 'make' builds\n>>> against new glibc) would to make GLOB_ALTDIRFUNCS to follow the old semantic\n>>> of using gl_stat instead of gl_lstat while making glob without GLOB_ALTDIRFUNCS\n>>> works as intended.  And add another flag, GLOB_ALTDIRFUNCS2, which actually\n>>> uses gl_lstat.\n>>\n>> Although that's clever, it is a gratuitous source-code incompatibility with BSD, which is not a good thing. To some extent it's just GLOB_FOLLOW and GLOB_NOFOLLOW in disguise, and disguise is not a good thing in APIs. So I think I still prefer the compat symbol approach.\n>>\n>> We'll get GNU 'Make' fixed, and I wouldn't worry overly much about people building unpatched 'Make' with new glibc. I filed a Make bug report is here:\n>>\n>> http://lists.gnu.org/archive/html/bug-make/2017-09/msg00014.html\n> \n> Right, I am mainly trying to avoid bring more internal glob implementation\n> complexity to glibc, but since you says the unpatched 'Make' built\n> against newer glibc shouldn't be a problem I think we can this way.\n> I will work on it.\n> \n\ni think breaking make is a serious issue now for\nanyone trying to do toolchain dev (in native chroots).\nand if this gets into a released version of glibc\nthen it will be an issue for distros.\n\ni think old make binaries should keep working with\nglibc 2.27 whatever it takes and it's best to fix\nthis breakage sooner than later (it's a pain to\ncarry patched make around).\n\n(this is not different than the stupid malloc hook\nusage was in emacs and that was dragged out over\nseveral years until glibc was fixed to wait for\na stable emacs release that is fixed, the same\nshould be done for make)","headers":{"Return-Path":"<libc-alpha-return-84603-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84603-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"x6gd577X\"; dkim-atps=neutral","sourceware.org; auth=none","spf=none (sender IP is )\n\tsmtp.mailfrom=Szabolcs.Nagy@arm.com; "],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtDgl555dz9sPs\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 14 Sep 2017 20:05:55 +1000 (AEST)","(qmail 869 invoked by alias); 14 Sep 2017 10:05:48 -0000","(qmail 641 invoked by uid 89); 14 Sep 2017 10:05:48 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:message-id:date:from:mime-version:to:cc\n\t:subject:references:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=jqhxHBPG9HmvSaPz\n\tWY3LNi1E2Z6aPTjDv+fHCJSTJsbCRL1Wikin8Ctm3JdXE5e4wUfPbwkb823mk9VP\n\tBeHRe10cYebHrBfXUIoU0UeFV5XvUWN8+ubUmmMtP9OTnqm4E/3vRz5g31HsLPQC\n\tndF5HLXwU+ZBgArbMZHsBmI9wV8=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:message-id:date:from:mime-version:to:cc\n\t:subject:references:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=sAAnWRikZc6hsrXYVZgWT/\n\teVxik=; b=x6gd577XbT5eH5kupJ+ByBZlnyJ3kPNk7XQFXlYicg/Wt/wVlQjmtL\n\t+/ylm2QutBsK23D8o6dGGDFe4eGbq5uHaEdDaVRQPqlC+2tMy8+KikJXzTfqdJL0\n\tDm3vXGGb6bP88DQLkkSWFbj53fOPiRFVUiudgcA4qivhRqZiHsqa4=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.1 required=5.0 tests=AWL, BAYES_00,\n\tRCVD_IN_DNSWL_NONE, SPF_HELO_PASS,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=HTo:D*ucla.edu,\n\tHx-languages-length:1947","X-HELO":"EUR03-DB5-obe.outbound.protection.outlook.com","Message-ID":"<59BA546C.8060904@arm.com>","Date":"Thu, 14 Sep 2017 11:05:32 +0100","From":"Szabolcs Nagy <szabolcs.nagy@arm.com>","User-Agent":"Mozilla/5.0 (X11; Linux x86_64;\n\trv:31.0) Gecko/20100101 Thunderbird/31.8.0","MIME-Version":"1.0","To":"Adhemerval Zanella <adhemerval.zanella@linaro.org>, \n\tPaul Eggert <eggert@cs.ucla.edu>, Zack Weinberg <zackw@panix.com>","CC":"nd@arm.com, Joseph Myers <joseph@codesourcery.com>, \n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>\n\t<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>\n\t<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>\n\t<4e71b51c-3ec8-bb11-19bd-8fc27d4ede3e@linaro.org>","In-Reply-To":"<4e71b51c-3ec8-bb11-19bd-8fc27d4ede3e@linaro.org>","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"7bit","X-ClientProxiedBy":"VI1PR0602CA0023.eurprd06.prod.outlook.com\n\t(2603:10a6:800:bc::33) To DB6PR0802MB2485.eurprd08.prod.outlook.com\n\t(2603:10a6:4:9b::23)","X-MS-PublicTrafficType":"Email","X-MS-Office365-Filtering-Correlation-Id":"8c28f85c-8ac3-42aa-fe88-08d4fb58252f","X-MS-Office365-Filtering-HT":"Tenant","X-Microsoft-Antispam":"UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:DB6PR0802MB2485; ","X-Microsoft-Exchange-Diagnostics":["1; DB6PR0802MB2485;\n\t3:m5c/rb3QtygnObaq9bf5skaeWUo2kqk53wAWmA0WZwcU97Nh2QG5yKz1jCq4vQ2LWYdSOhP5SDTLGYEdFntk7/stutWNQBMp+PqnJf5DLb5LDpMPpPA9mNc2965EZT6I002yTu+0xlgED6Kfj8LeQl3pa/YW8LWWK1JgOOgk7yBEiZmqadqAH/jASj/EtL022C7OlUB3GI5NsQ5lnZIPEK6Y0aNvaH49hx3Ee+Qm2+JNNy3+Jr1ELCwzE6Z4/oGw;\n\t25:OYLkM710fiBtEHvRO8Fco3hjvh+7z2VTz5cy7AQFzfHdcccRtsZgOO90B0Uw79QFhm12VmgkAZCtPPaHzFRSVnDyDx9in7rj8B07x0LmSk+s/Pgmuy+3rlbtcxsUlAI6Ou0/3J/r37X59q1I3mljphODWlkdMqLp49Z6rybArxCfSS1Cp6D2cNNjgDgsKrUKYnSeNzMaL4TKkwAKW5ugdr1h8hId6QcPTUewyEVHtYDIpwVGUNRUKu5dEaO7CkrKPWk+TFB3sEljtYH0PJKr/1lMNrLFCPX23hLCfGQP/NzMTWEhSDadY9ZFEP4qpDT6XK8AtTgmctNdObV3x48K6A==;\n\t31:BHfZ69t44eoz43kLE3HLbCJZ0bjMUVMwZHa0dR4YuSLl523abQy/Bs6mm6zwWn0rWAFOUe8E4UEKT2gK8jMddB+cm46rpdanBDyDCPhvt88Qe5VJPsk8Damq4haDZF0GChqqUrEZIZ/inbuNYOq0DWyLyswFGeq5LmjjH7DCM7xFqlrAmaa6Cb0VlI+ELr5ZLUrGUTzRi7eWOi+s5SE3OzavZLN6mPuyWuYIri3y/hc=","1; DB6PR0802MB2485;\n\t20:+uKNcurLIf1HMKA8fzVZSh6rPquuKBPmWwHc7hXDCSGzSRIeCAa8Wa7X2aOPoP2DWXYCzNEvIFtwvKxK1WuLqOBamzid+ngdBGQ7YHqntC+gMAYyH5w2uusy7Rfsr06CN0d0y9ifu8grPDjt4/z2n2PpJ4pK3OCUL2h3C38yyYU=;\n\t4:mQ2sD6Ws3byBtLTswGg4RG+9ftBEYmj7JqHRqb1f2QXr5NLgEodYYy1eUM1YVuu7B0b/cT2+BPGbQP3vxfyJ5DlAd4UQE3LsGNlmo0Xja03jwPOF7RnjUGmce2/6F+S3NsaVstwFH/qqlasUOoEVxhUberJWNsKY3vSgvraE+b3fDYcXo4CIQABRZyuypPVk08ovqzlUPO1BU2dz/v/Hn9CsgOkIyCPp7ViXAl/9RyP3PcLSaDEhR8Md4E/08PR9XL3q1cn+qGNZCJIOmKC5yS2GQ36FvUcELGG8tzOqRQABlcxEYK9SDrLT+H5JLWObOTtGv9kDvEiF9mRtcFO4gh5+A6zNx8esBhNq27xE5eJAxIxh88kLaSepfZnDV+B+","=?utf-8?q?1=3BDB6PR0802MB2485=3B23=3APi?=\n\t=?utf-8?q?CQD98f/v35aCYn1dUYGZJ4jnzXaf5XUCGbAqFop/hArG/6t58vJsKXJM?=\n\t=?utf-8?q?pfbYrkV8EEeBwJT7V/bXYDFjW/ROXiR22sFlHeM1eszTdrZEgooNwkEp?=\n\t=?utf-8?q?aR14vkZWnOkGh/qByXOqY5Swn1h6hmQ62E2GjpTK/xwU+yzsJf40zUvA?=\n\t=?utf-8?q?ElJi/l/3f3pRq4D7nj0I5A3A5NN1+yeXCqrdbjJOJJbOTbJ607EUIgvO?=\n\t=?utf-8?q?bzP/x+46r3cLgSOjx0KFf9FK6JkhYnQFHNVbBezlpbA3t4LsFd73WVx0?=\n\t=?utf-8?q?HLX8EKYoCFd6o/aAtnX0tO/xHc/ELlDfhrBFPHMoYpPu7KZfB722e4bH?=\n\t=?utf-8?q?iBhwPlqfPxl5WaNORbw3ap7veNcnRh4LHp9Q4bPsEfJ+xgOIurfobsVm?=\n\t=?utf-8?q?JD16G7gjwv3nfuYZgeN2Z7e+7cbWcI1FkqIrQGli0taun2yPYq9GJGlQ?=\n\t=?utf-8?q?OI+dhog7sK/S1G8yVZ7WPmNvLmS+P6PN76pDIbTyR65SKEqdpHqcFDgE?=\n\t=?utf-8?q?r8P8zpl4uq5nFZ72ka0kTMtn/jV9nnqLKVERrZCvFNh/jSkX9hkgJWgC?=\n\t=?utf-8?q?CStf/YP1LLjWrNU+mCqbQHuC99Y1IhlOsp5llmNwSIqiATqrd8dhVZ6T?=\n\t=?utf-8?q?n4Z3TlvYMfQFs+oAvJvhgtGkXWf1EB0/4Z6dM6dlX/NJkfhJxhy7RdZR?=\n\t=?utf-8?q?YN5CWE1Ucdy6itWGyrg316J+PODTzCUP97z41DgBx+ruV5Sy3baawaGo?=\n\t=?utf-8?q?Xc7gbAzrL/1KXuobyRvAGd9Zoq7YMgxu6txxvlAv5IymAntHKEkvnqOa?=\n\t=?utf-8?q?Km4eXi2SHivQm7drIvTpqV/NdEmw9hYbvgwf82vBkH4xtYVidycQsVhr?=\n\t=?utf-8?q?WmHINahVTUJhKy0h5Nff6mF38QHibE48y7FVq523Pw0Bg8irP98aZg30?=\n\t=?utf-8?q?oM0T8l4QWAdaqm5upQotmnhxITTBLvignfyb8wdAuq0TNaVbIdm5EeGj?=\n\t=?utf-8?q?mi9Ix7QvqNi5E5bxmzZLsdj0wDN9MAo3UhxD0BYaxpmHTB4r3BZNoH1Z?=\n\t=?utf-8?q?4TamBWTvsHvi2Kywxiu0sgxvrBstxiSzT+to/Q/icAiinnB+CFa0mSQl?=\n\t=?utf-8?q?Y9LMN/wneNzJ+mYQjYJgEc9NLgi/9KI3DDVewMZBzYNxtC63pwxRH7UK?=\n\t=?utf-8?q?PTLaU7ypK0fgkKHrxY60TtRVFYnohje0HhsG0/pd5psKVzcEtiGLDH43?=\n\t=?utf-8?q?aHEash79ueeSDnNZaG9cDL8f6tWmdw7jPS6H43FcFZVgxvUQyice+kQL?=\n\t=?utf-8?q?/gMa26O4adS2jye52RbZa6sEGzSwOefsXEhagwXRk75nD/NuwshrKJR6?=\n\t=?utf-8?q?kNjvp1+HUFFFzjk8G+ta5R+R0zFMSMhAkzHbHkuxTFsSdQwvXK2hF7RJ?=\n\t=?utf-8?q?FHKVRN8ALCo2c7S+TpvOIN9q4xaLWnl0WHGeKQSHP2cEZCJFgdaS0jiK?=\n\t=?utf-8?q?6jkMC/Q6/vSjORxKIyO2ppteGZojQCqu7JvxXcXM/k5hLFD294fuxaSe?=\n\t=?utf-8?q?2ZyHnJcFUFUzgVZdLyGIo16BxjvOzkIE7gxkbf65wHnS4cuxxDxmZeOA?=\n\t=?utf-8?q?83u9xWukYSwHCkwequhtg4?=","1; DB6PR0802MB2485;\n\t6:EMRQxi9dtfvMaN8AHimCkdLR5ZvkZiOR6H1bMTsUYzaiB7u9I0vlT5ZVboGjiESXb6V9ZU305dBWuH1IsjfaUVT9HdQBdCwqt+W4SVB06FXMKAKf+LT6J5hlPJNK6IBn4LJ9NJER4Vwt5lGC/cY/s5vEJai86/3G86aevWukkky59RaI9GfcZ7MM3YVrKCgAGd6JPXd6C/6E5oASoAP0a5U4Dx4gtBUPHgU0IO/Yx8L6xvPFvI6JscbZMfcLf1d1i8f85AVfwVq8aexpbrG4LBOq3iS+5EJsXSMT0wyuOo6WpOL918wF/MZWvzu4UFxtsOOmwcT7jIhZ4Y8t1h0ccA==;\n\t5:rz4bgy1nY7YdOI4AMIcbnnDZ4ywesUVbM0G3OCeVAYTA8vF18flOEsJs2jiP+M5YbeoU5+hYm/LVfd1G+FLbUc8+VjKqHUjJi7WQR9GF89tBFumBqJaSP80zatSSz+97Xot0TlfNAZGG703MZJ5hSw==;\n\t24:CCuDeIdh2gK2xwWyRUhKwlr3+14G6toByxsPeZs+1MtNh9dTU009n36+6FX7BCRTR0A0bMDIXfwH98h9BrLGZ6zVgqbvJfIBw7QoSbOnfLw=;\n\t7:E3ywUaGDTOtMNHBo/6pllYES4Iin6BWOarRO4qhZqXfur9Oa3Ad+y45U+HR/NlR5URcpENlFhvM8v52N571I7bSAcBMEe8kBp0CiAi0+rGphN/Av9uN7BYlpQET5vdBE9OZ0cNm0YAp5c6dg3WZJs3b9T86w+a7HgYDMPUoFdnhYih/vEuUjB4QZzQMHr/IyVg8YIJcmMgsyTdjFwvwrvdCpP6TPkaZ31obm5eqbI4M="],"X-MS-TrafficTypeDiagnostic":"DB6PR0802MB2485:","NoDisclaimer":"True","X-Exchange-Antispam-Report-Test":"UriScan:(226959686518644)(22074186197030)(17755550239193); ","X-Microsoft-Antispam-PRVS":"<DB6PR0802MB2485C135A9DBE4A5089C1DA4ED6F0@DB6PR0802MB2485.eurprd08.prod.outlook.com>","X-Exchange-Antispam-Report-CFA-Test":"BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:DB6PR0802MB2485; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:DB6PR0802MB2485; ","X-Forefront-PRVS":"0430FA5CB7","X-Forefront-Antispam-Report":"SFV:NSPM;\n\tSFS:(10009020)(4630300001)(7370300001)(6049001)(6009001)(346002)(39860400002)(376002)(199003)(24454002)(189002)(478600001)(65956001)(316002)(65806001)(2906002)(72206003)(4326008)(66066001)(16576012)(966005)(50466002)(2171002)(54906002)(230700001)(6246003)(4001350100001)(97736004)(93886005)(305945005)(83506001)(81166006)(3846002)(16526017)(25786009)(2950100002)(6116002)(36756003)(6666003)(7736002)(81156014)(106356001)(77096006)(64126003)(105586002)(7350300001)(8676002)(87266999)(68736007)(101416001)(50986999)(6486002)(76176999)(229853002)(33656002)(80316001)(54356999)(189998001)(65816999)(53936002)(23676002)(47776003)(53546010)(86362001)(6306002)(5660300001)(59896002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0802MB2485;\n\tH:[10.2.206.69]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1;\n\tLANG:en; ","Received-SPF":"None (protection.outlook.com: arm.com does not designate\n\tpermitted sender hosts)","SpamDiagnosticOutput":"1:99","SpamDiagnosticMetadata":"NSPM","X-OriginatorOrg":"arm.com","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"14 Sep 2017 10:05:35.6772\n\t(UTC)","X-MS-Exchange-CrossTenant-FromEntityHeader":"Hosted","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"DB6PR0802MB2485"}},{"id":1768606,"web_url":"http://patchwork.ozlabs.org/comment/1768606/","msgid":"<93a08b16-28a6-2df9-a24e-8f1cc63b7951@linaro.org>","list_archive_url":null,"date":"2017-09-14T13:43:10","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":66065,"url":"http://patchwork.ozlabs.org/api/people/66065/","name":"Adhemerval Zanella Netto","email":"adhemerval.zanella@linaro.org"},"content":"On 14/09/2017 07:05, Szabolcs Nagy wrote:\n> On 13/09/17 13:22, Adhemerval Zanella wrote:\n>> On 13/09/2017 06:14, Paul Eggert wrote:\n>>> Adhemerval Zanella wrote:\n>>>> Another approach that does not involve adding compat symbols (which adds\n>>>> a lot of code complexity inside glibc build and do not solve 'make' builds\n>>>> against new glibc) would to make GLOB_ALTDIRFUNCS to follow the old semantic\n>>>> of using gl_stat instead of gl_lstat while making glob without GLOB_ALTDIRFUNCS\n>>>> works as intended.  And add another flag, GLOB_ALTDIRFUNCS2, which actually\n>>>> uses gl_lstat.\n>>>\n>>> Although that's clever, it is a gratuitous source-code incompatibility with BSD, which is not a good thing. To some extent it's just GLOB_FOLLOW and GLOB_NOFOLLOW in disguise, and disguise is not a good thing in APIs. So I think I still prefer the compat symbol approach.\n>>>\n>>> We'll get GNU 'Make' fixed, and I wouldn't worry overly much about people building unpatched 'Make' with new glibc. I filed a Make bug report is here:\n>>>\n>>> http://lists.gnu.org/archive/html/bug-make/2017-09/msg00014.html\n>>\n>> Right, I am mainly trying to avoid bring more internal glob implementation\n>> complexity to glibc, but since you says the unpatched 'Make' built\n>> against newer glibc shouldn't be a problem I think we can this way.\n>> I will work on it.\n>>\n> \n> i think breaking make is a serious issue now for\n> anyone trying to do toolchain dev (in native chroots).\n> and if this gets into a released version of glibc\n> then it will be an issue for distros.\n> \n> i think old make binaries should keep working with\n> glibc 2.27 whatever it takes and it's best to fix\n> this breakage sooner than later (it's a pain to\n> carry patched make around).\n\nYes, that was the consensus and the idea is to provide a compat symbol\nthat does not call gl_lstat.\n\nAs a side note, make tests itself does not trigger it this issue\n(running make tests with a newer glibc shows no regression), so it\nwould be good also if make adds a newer tests to stress it.\n\n> \n> (this is not different than the stupid malloc hook\n> usage was in emacs and that was dragged out over\n> several years until glibc was fixed to wait for\n> a stable emacs release that is fixed, the same\n> should be done for make)\n>","headers":{"Return-Path":"<libc-alpha-return-84618-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84618-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"AduuYKVP\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtKVk0XqJz9s9Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 14 Sep 2017 23:43:25 +1000 (AEST)","(qmail 124658 invoked by alias); 14 Sep 2017 13:43:19 -0000","(qmail 124633 invoked by uid 89); 14 Sep 2017 13:43:18 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=D9YPuiImAdVSaoNz\n\tOZV9dz3WWtZ8K2yXONyXjOByZit7BJWSF69c85IOb7nGpXXEvlFthaUz8bsF7Fxk\n\tGE3ATio9vpDb1D8+ipC1b2zMiYvna9ASnnw9XsQg0nW0/VX8unt8ncjVXz6ticFr\n\tDtk43mYxdw4Xz8KGS9uPvhhrvOA=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=RWMMj3xuei0XzU1DqboIsj\n\tUvCJE=; b=AduuYKVPufBftbs8pLmQ8YLAlmddU0UntdnYrAAwUoAvHEvGaMjeY/\n\tDCkFiCBzfV9xruhhiDrWBSZSAwH5o0F12c5MSMl28stQvRyiYuJbF/ymFawjBfEk\n\tyD7mild9FeC1Q6XEr4E0sCOqi4vZ6wnjcFmjvs3fo80rDuGcCA10k=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.4 required=5.0 tests=BAYES_00,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=","X-HELO":"mail-qt0-f177.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=fGiGD2XAlcoC0jq7wIXegkYrxsuCL1MtA0EiItt6xZU=;\n\tb=swpLSiXhtL02caXIaYwUJdHR43DAtK62ODmnoJa/DmHhDmdFjCDs+Q6mvAF+RwBXjv\n\tElEIPCuC5DxpGmyFvplQBf32UoQZ+0ozhTJLGKx/hQrG06Plc/xOnFmOBquuW3LENN3R\n\tWRoaT3OLN1U+Jozav3nY7s7JlkSLK4QEjO812QHZfeafThmG+vOoMgU0PNacwIMtMlLi\n\t3vcFRtZRytNbPVtlIyZZLJNKabtSiufzrgJBDkrAmleEnokoDFWQq2l624je9jeFKZks\n\tjjifjOZ1L0PqKBQ1xh/P79aZTL3lARgHp9UaVbi95/MjQKDei8/oL9/ug+zBOUFhQS9X\n\tHIQw==","X-Gm-Message-State":"AHPjjUiNEbzwOn1CUSv4+dbXWPRxgFzNW/GsSD8MmDTENQADDbBjfgCG\n\tgj9ecqMbtA1g1RsPH7eJRw==","X-Google-Smtp-Source":"AOwi7QDCr9GkiSxkSC0gHaiJFtMSOU+OPqIPJoVkFRf4YhATuKeAb4A3JQTeegc76bECJlAnI4JNWg==","X-Received":"by 10.200.2.141 with SMTP id p13mr24159431qtg.45.1505396594769; \n\tThu, 14 Sep 2017 06:43:14 -0700 (PDT)","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Szabolcs Nagy <szabolcs.nagy@arm.com>, Paul Eggert <eggert@cs.ucla.edu>, \n\tZack Weinberg <zackw@panix.com>","Cc":"nd@arm.com, Joseph Myers <joseph@codesourcery.com>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>\n\t<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>\n\t<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>\n\t<4e71b51c-3ec8-bb11-19bd-8fc27d4ede3e@linaro.org>\n\t<59BA546C.8060904@arm.com>","From":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","Message-ID":"<93a08b16-28a6-2df9-a24e-8f1cc63b7951@linaro.org>","Date":"Thu, 14 Sep 2017 10:43:10 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.2.1","MIME-Version":"1.0","In-Reply-To":"<59BA546C.8060904@arm.com>","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"7bit"}},{"id":1769428,"web_url":"http://patchwork.ozlabs.org/comment/1769428/","msgid":"<c2a4ffe9-221b-c79e-5026-9753a55b2e0e@redhat.com>","list_archive_url":null,"date":"2017-09-15T20:18:13","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":14312,"url":"http://patchwork.ozlabs.org/api/people/14312/","name":"Florian Weimer","email":"fweimer@redhat.com"},"content":"On 09/13/2017 11:14 AM, Paul Eggert wrote:\n> Although that's clever, it is a gratuitous source-code incompatibility \n> with BSD, which is not a good thing. To some extent it's just \n> GLOB_FOLLOW and GLOB_NOFOLLOW in disguise, and disguise is not a good \n> thing in APIs. So I think I still prefer the compat symbol approach.\n\nIf the BSDs are currently source-code-compatible, why doesn't GNU make \nfail there already?\n\nThanks,\nFlorian","headers":{"Return-Path":"<libc-alpha-return-84656-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84656-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"OQb9NP7Y\"; dkim-atps=neutral","sourceware.org; auth=none","ext-mx04.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx04.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=fweimer@redhat.com"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xv6D451sxz9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 16 Sep 2017 06:18:28 +1000 (AEST)","(qmail 61655 invoked by alias); 15 Sep 2017 20:18:21 -0000","(qmail 61642 invoked by uid 89); 15 Sep 2017 20:18:20 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=xGOb3WhIf9uqWdn2\n\tFvj/ujoC47OdJvG4vW5RiDZ5mJBukWa0nYK4Zncz7ZVabIORh6Mg1b4OyjRZxbuH\n\tze+TyI2fmWOAA7ru0NpmzvEH/o08OeKa89sQKU8URN4R5Kov6Exk9akIIOJ+7l5V\n\tKWCAfqhpG+AXo/ZLo/W+Ojhfr7g=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=QEwBnK8tw4m6/U/nOSBcOs\n\tXnVWs=; b=OQb9NP7Y86JVL8ZjmVHSo93WYIlE6xh9jUa3ipuvdj1wR6z7I0+q32\n\tKoBPUuTU2o8so/8HxYYx+1hZrwlbtKffGViv+6HLtF0UqdlPLmnCF/po60PIc/h8\n\tjNSse+m5pbU3G/WpDDF9rwBP8SCsCgHHWOBpA6CR2t3ER3ymh3za0=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-0.9 required=5.0 tests=BAYES_00,\n\tKAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD,\n\tSPF_HELO_PASS autolearn=no version=3.3.2\n\tspammy=Hx-languages-length:504","X-HELO":"mx1.redhat.com","DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com 75A2880473","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Paul Eggert <eggert@cs.ucla.edu>,\n\tAdhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tZack Weinberg <zackw@panix.com>","Cc":"Joseph Myers <joseph@codesourcery.com>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>\n\t<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>\n\t<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>","From":"Florian Weimer <fweimer@redhat.com>","Message-ID":"<c2a4ffe9-221b-c79e-5026-9753a55b2e0e@redhat.com>","Date":"Fri, 15 Sep 2017 22:18:13 +0200","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"7bit"}},{"id":1769434,"web_url":"http://patchwork.ozlabs.org/comment/1769434/","msgid":"<12a22db1-aedd-43f0-da2f-04caa0d0988e@linaro.org>","list_archive_url":null,"date":"2017-09-15T20:26:54","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":66065,"url":"http://patchwork.ozlabs.org/api/people/66065/","name":"Adhemerval Zanella Netto","email":"adhemerval.zanella@linaro.org"},"content":"On 15/09/2017 17:18, Florian Weimer wrote:\n> On 09/13/2017 11:14 AM, Paul Eggert wrote:\n>> Although that's clever, it is a gratuitous source-code incompatibility with BSD, which is not a good thing. To some extent it's just GLOB_FOLLOW and GLOB_NOFOLLOW in disguise, and disguise is not a good thing in APIs. So I think I still prefer the compat symbol approach.\n> \n> If the BSDs are currently source-code-compatible, why doesn't GNU make fail there already?\n\nMy understanding is BSDs were not current source-code-compatible before\nthe dangling symlink fix (commit 5554304f0) since afaik both openbsd \nand freebsd do check for dangling symlinks (using gl_lstat if it is\nthe case).\n\nReverting back to ol GLOB_ALTDIRFUNC semantic with make glibc again\nsource-code-incompatible and by adding an extra flag would require\nadjustments in the program source code to actually handle it.","headers":{"Return-Path":"<libc-alpha-return-84659-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84659-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"I3NNSMsv\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xv6Q63xX7z9s83\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 16 Sep 2017 06:27:10 +1000 (AEST)","(qmail 102743 invoked by alias); 15 Sep 2017 20:27:03 -0000","(qmail 102301 invoked by uid 89); 15 Sep 2017 20:27:03 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=sQ+IUpno8hhZZAZr\n\tuIMR7pTPpyOZjZhY9TZLcScMTjQ5STSjRh9Wzs0dbM1MB5/QIbZzlKk6JFV1wIPz\n\trogXQ/vhevErXpOj1245hjy4PuiYxIxvIQpBXmA1yMoDIz9+hgd7AaBCZncx9suJ\n\tqGDUJ0bagBqwhk3ds53ShVybY80=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=DwqCxrGGYXNGDN5SKxBJJT\n\tu8IRw=; b=I3NNSMsvUA7qzp//KhRvMP8DCXMmz1APseWR6mQ3y8zR2wI+qjLD1e\n\tc2aGkSkf6ubsin1L5WD7rBU3wptoaGvAA0EuSJ83Qv8XNKFE4OmdfEH8XRPF2v3L\n\tAgfLwiTlorV+xiG1o2jXD0sxaElcDRVhI1InGEwoa3X+cx+nackzw=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.4 required=5.0 tests=BAYES_00,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=","X-HELO":"mail-qt0-f174.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=8UoZaHuLQpXBMhZmXovjWdUImrFiMtrEW/V74HyIv1o=;\n\tb=CePc57zAuRA5pLY0ouO9sAuxoLWlPyJsGHrscW6hfEZEUS6ZTWza60Kw4o+FSbSXq/\n\tC1Zn3vGEoYZD8AFj1JuOPLNRPc1dGUWloJOuctc12aCB4YJnGfPSzYZK1pz8BrySSQrf\n\t6rC1xgaw7IuGp2otBbnLJZQxnNQCE8EsQymBmHLxIIGl9H/l6cQ8pSTPeStbbOPQnOzT\n\t4gzkRz7hT6V72jnJ6SxQ6m6rBTdypXJtepMpMKWqNyimnlU/je8ciMHafVV1/HhCvLEp\n\tgSjaq/4g4mtJvHuOS5Tp3Q+PlREc/VvcFEIKRYQqojsLdiqP2ITLRWcNATfPDFsWNH87\n\t9oxA==","X-Gm-Message-State":"AHPjjUgF9jjBTHIGsNDEVBPkqXkFe8vvwZSK94st9tBfYakdfFfsaGYA\n\tFL0dPu0VDFNaV9IstE8Szw==","X-Google-Smtp-Source":"AOwi7QCpy5nppQ6h5HL/ohRLVSoEUzYaWzUbADfOKqkIswcIrY0957HTeCG+bvDLUjefqA/sE6/wdQ==","X-Received":"by 10.200.35.153 with SMTP id q25mr39392031qtq.178.1505507220360;\n\tFri, 15 Sep 2017 13:27:00 -0700 (PDT)","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Florian Weimer <fweimer@redhat.com>, Paul Eggert <eggert@cs.ucla.edu>,\n\tZack Weinberg <zackw@panix.com>","Cc":"Joseph Myers <joseph@codesourcery.com>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>\n\t<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>\n\t<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>\n\t<c2a4ffe9-221b-c79e-5026-9753a55b2e0e@redhat.com>","From":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","Message-ID":"<12a22db1-aedd-43f0-da2f-04caa0d0988e@linaro.org>","Date":"Fri, 15 Sep 2017 17:26:54 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<c2a4ffe9-221b-c79e-5026-9753a55b2e0e@redhat.com>","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"8bit"}},{"id":1769670,"web_url":"http://patchwork.ozlabs.org/comment/1769670/","msgid":"<74d2ab7c-d6e1-10ff-a254-498438c999fe@cs.ucla.edu>","list_archive_url":null,"date":"2017-09-17T07:16:49","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":4434,"url":"http://patchwork.ozlabs.org/api/people/4434/","name":"Paul Eggert","email":"eggert@CS.UCLA.EDU"},"content":"Florian Weimer wrote:\n> If the BSDs are currently source-code-compatible, why doesn't GNU make fail \n> there already?\n\nBecause GNU make never uses BSD glob. GNU make's 'configure' script checks that \n_GNU_GLOB_INTERFACE_VERSION equals 1, and if not it compiles and uses its own \nglob implementation (copied from an old version of glibc).\n\nIf glibc changed _GNU_GLOB_INTERFACE_VERSION to 2, old versions of GNU make \nwould start rejecting new versions of glibc, and so would build and run OK \nbecause they'd use their old copy of glob. The comment in gnu-versions.h says \nthat if we change _GNU_GLOB_INTERFACE_VERSION then we must change the libc.so \nmajor version, but this rule seems arbitrary.\n\nSuppose we ignore the gnu-versions.h comment and update \n_GNU_GLOB_INTERFACE_VERSION to 2 without changing libc.so's major version. \nWouldn't this fix the compatibility problem with GNU Make?","headers":{"Return-Path":"<libc-alpha-return-84667-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84667-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"GkDCR2uZ\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xw0nS00Wwz9sRm\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 17 Sep 2017 17:16:59 +1000 (AEST)","(qmail 25701 invoked by alias); 17 Sep 2017 07:16:53 -0000","(qmail 24707 invoked by uid 89); 17 Sep 2017 07:16:52 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=NPcllrcbSQuoC4Lo\n\t1RTW1HrEuk/8P1tTPiP9XIcxE4S9lynd+TBsesVDYd6l935zEbw6+qScNdOsXmrk\n\t6tdvVscUbtIwbHvbN6ZD0P3QFUKmo7LsCXiLyGDpjjpYR1rmp3ij5Z9tvlQVsfgb\n\th2WSfAaMmpau+fPPNLVqsMZS8Rc=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=TbghmIPLNkXhaNx87P9Yvn\n\tyDISw=; b=GkDCR2uZqlX3GJmwZmHhOMJtxx9blNdIdh0Upn+Nsg5aRZ9Kl7UXvz\n\ts62L0xxaPhUGx21bcqjYdPYBcwjxknRlm4lzafJEeRyhmSrdOTExYgfgXuK6YRMK\n\tHEIcJ12YTKDbNo08kFOIPQaxZBcSECzOYnxVgUPyi9xrLFILyERdw=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.9 required=5.0 tests=BAYES_00,\n\tRP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2\n\tspammy=Hx-spam-relays-external:sk:zimbra., H*RU:sk:zimbra.,\n\tHX-HELO:sk:zimbra., they'd","X-HELO":"zimbra.cs.ucla.edu","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Florian Weimer <fweimer@redhat.com>,\n\tAdhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tZack Weinberg <zackw@panix.com>","Cc":"Joseph Myers <joseph@codesourcery.com>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>\n\t<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>\n\t<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>\n\t<c2a4ffe9-221b-c79e-5026-9753a55b2e0e@redhat.com>","From":"Paul Eggert <eggert@cs.ucla.edu>","Message-ID":"<74d2ab7c-d6e1-10ff-a254-498438c999fe@cs.ucla.edu>","Date":"Sun, 17 Sep 2017 00:16:49 -0700","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<c2a4ffe9-221b-c79e-5026-9753a55b2e0e@redhat.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"7bit"}},{"id":1769681,"web_url":"http://patchwork.ozlabs.org/comment/1769681/","msgid":"<224bb5ab-daf0-f433-156d-ae25b2ae873a@redhat.com>","list_archive_url":null,"date":"2017-09-17T07:48:30","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":14312,"url":"http://patchwork.ozlabs.org/api/people/14312/","name":"Florian Weimer","email":"fweimer@redhat.com"},"content":"On 09/17/2017 09:16 AM, Paul Eggert wrote:\n> Florian Weimer wrote:\n>> If the BSDs are currently source-code-compatible, why doesn't GNU make \n>> fail there already?\n> \n> Because GNU make never uses BSD glob. GNU make's 'configure' script \n> checks that _GNU_GLOB_INTERFACE_VERSION equals 1, and if not it compiles \n> and uses its own glob implementation (copied from an old version of glibc).\n\nAh, thanks.\n\n> If glibc changed _GNU_GLOB_INTERFACE_VERSION to 2, old versions of GNU \n> make would start rejecting new versions of glibc, and so would build and \n> run OK because they'd use their old copy of glob. The comment in \n> gnu-versions.h says that if we change _GNU_GLOB_INTERFACE_VERSION then \n> we must change the libc.so major version, but this rule seems arbitrary.\n\nThis comment predates the availability of symbol versioning.  It was \ntrue when it was written.\n\n> Suppose we ignore the gnu-versions.h comment and update \n> _GNU_GLOB_INTERFACE_VERSION to 2 without changing libc.so's major \n> version. Wouldn't this fix the compatibility problem with GNU Make?\n\nIn addition to adding a compat symbols?  Yes, that could work.\n\nI don't really like this situation, but this combination seems to be a \nsomewhat reasonable way to fix both the glob bug and preserve backwards \ncompatibility.\n\nThanks,\nFlorian","headers":{"Return-Path":"<libc-alpha-return-84668-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84668-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"vhW+2bXA\"; dkim-atps=neutral","sourceware.org; auth=none","ext-mx10.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com","ext-mx10.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=fweimer@redhat.com"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xw1VD2Wytz9sRm\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun, 17 Sep 2017 17:48:52 +1000 (AEST)","(qmail 122398 invoked by alias); 17 Sep 2017 07:48:38 -0000","(qmail 122124 invoked by uid 89); 17 Sep 2017 07:48:37 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; q=dns; s=default; b=Q6Vw2kkYqhpTHxuy\n\tdo+Iemxn74JWmS6H/lAaxmqf7j7wQJzvQiQUObFwPW4K/m299/2Fcx+tbYaMX75q\n\tfMG8NK2uvnfvr6SVHra2fUFICOYi9Qoq1zy9lgNg1PldJbR+bV6GKwg4FrQxAEpF\n\t5rEWR05ZklBOZ4ePFEeoTnvFBsY=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:subject:to:cc:references:from:message-id:date\n\t:mime-version:in-reply-to:content-type\n\t:content-transfer-encoding; s=default; bh=NsbIZ10sPOxDyEfb4uPmLY\n\tGFCTA=; b=vhW+2bXAkNzRyW3XBMEVi73VlmwpHUDb4uS0y9n1cdmukyBeqhwPPd\n\tQYDHZesFPrVpMSnYPM++0qtP/Nyzfeu66D1yvwWEnXry38fHAvLUwkDbBtrdtRX8\n\txe1J4JHvwEaLw2v8JCNAY6SRTewy6pfg7GxkKkh3gjiM7VQFWNSlg=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.9 required=5.0 tests=BAYES_00,\n\tRP_MATCHES_RCVD,\n\tSPF_HELO_PASS autolearn=ham version=3.3.2 spammy=","X-HELO":"mx1.redhat.com","DMARC-Filter":"OpenDMARC Filter v1.3.2 mx1.redhat.com E47E95D5EB","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","To":"Paul Eggert <eggert@cs.ucla.edu>,\n\tAdhemerval Zanella <adhemerval.zanella@linaro.org>,\n\tZack Weinberg <zackw@panix.com>","Cc":"Joseph Myers <joseph@codesourcery.com>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>\n\t<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>\n\t<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>\n\t<c2a4ffe9-221b-c79e-5026-9753a55b2e0e@redhat.com>\n\t<74d2ab7c-d6e1-10ff-a254-498438c999fe@cs.ucla.edu>","From":"Florian Weimer <fweimer@redhat.com>","Message-ID":"<224bb5ab-daf0-f433-156d-ae25b2ae873a@redhat.com>","Date":"Sun, 17 Sep 2017 09:48:30 +0200","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<74d2ab7c-d6e1-10ff-a254-498438c999fe@cs.ucla.edu>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Transfer-Encoding":"7bit"}},{"id":1769717,"web_url":"http://patchwork.ozlabs.org/comment/1769717/","msgid":"<5179DAE5-3CEA-4867-A1C3-A605B4A4FE0D@linaro.org>","list_archive_url":null,"date":"2017-09-17T14:18:11","subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","submitter":{"id":66065,"url":"http://patchwork.ozlabs.org/api/people/66065/","name":"Adhemerval Zanella Netto","email":"adhemerval.zanella@linaro.org"},"content":"> Il giorno 17 set 2017, alle ore 04:48, Florian Weimer <fweimer@redhat.com> ha scritto:\n> \n>> On 09/17/2017 09:16 AM, Paul Eggert wrote:\n>> Florian Weimer wrote:\n>>> If the BSDs are currently source-code-compatible, why doesn't GNU make fail there already?\n>> Because GNU make never uses BSD glob. GNU make's 'configure' script checks that _GNU_GLOB_INTERFACE_VERSION equals 1, and if not it compiles and uses its own glob implementation (copied from an old version of glibc).\n> \n> Ah, thanks.\n> \n>> If glibc changed _GNU_GLOB_INTERFACE_VERSION to 2, old versions of GNU make would start rejecting new versions of glibc, and so would build and run OK because they'd use their old copy of glob. The comment in gnu-versions.h says that if we change _GNU_GLOB_INTERFACE_VERSION then we must change the libc.so major version, but this rule seems arbitrary.\n> \n> This comment predates the availability of symbol versioning.  It was true when it was written.\n> \n>> Suppose we ignore the gnu-versions.h comment and update _GNU_GLOB_INTERFACE_VERSION to 2 without changing libc.so's major version. Wouldn't this fix the compatibility problem with GNU Make?\n> \n> In addition to adding a compat symbols?  Yes, that could work.\n> \n> I don't really like this situation, but this combination seems to be a somewhat reasonable way to fix both the glob bug and preserve backwards compatibility.\n\nAlright, I am also not very found on the required hacking to fix make, but I agree this seems to be the safest path. I will update the glob compat patch with minor fixes pointed out by Joseph and the _GNU_GLOB_INTERFACE_VERSION version bump.","headers":{"Return-Path":"<libc-alpha-return-84669-incoming=patchwork.ozlabs.org@sourceware.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list libc-alpha@sourceware.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-84669-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"ZCGuF6oV\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xwB7s1qvJz9sBZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 00:18:32 +1000 (AEST)","(qmail 123439 invoked by alias); 17 Sep 2017 14:18:27 -0000","(qmail 123428 invoked by uid 89); 17 Sep 2017 14:18:27 -0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:content-type:mime-version:subject:from\n\t:in-reply-to:date:cc:content-transfer-encoding:message-id\n\t:references:to; q=dns; s=default; b=IZJKbQ5drVLdXqxXH69gl7OaopNB\n\tYJ2tg/4BSSeLdwlC1y4LfAgsbkEDN2CnxCflF5tl9uf9I0IrDiiHxNxRAtHZtlFI\n\tmad/gyxj/X8ib80UoysA4MK1+iRSTTaYj16oYSRmlWm7l2EaHPh4QK8T5u2RBzCG\n\t/F98UYwW7hPm4w0=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:content-type:mime-version:subject:from\n\t:in-reply-to:date:cc:content-transfer-encoding:message-id\n\t:references:to; s=default; bh=NN6e/KkKXN/muI0gsYzubw0bWZU=; b=ZC\n\tGuF6oV7fXC2sWLh6Xgp6RtPKtkdlpagAHn71vAY/bP6njcHPQ9/ygCq+X1tTzMy3\n\t1AS2i54l5qEqhyK0r14sD8vMg32EP2iFxTtwIbMHZy3+gQeUWU9ad1yRjz5HWf8B\n\tzdHJ0Z4VdbLg6Ms5RF9ppzDlI8TGVi8Npyfvm1Cp4=","Mailing-List":"contact libc-alpha-help@sourceware.org; run by ezmlm","Precedence":"bulk","List-Id":"<libc-alpha.sourceware.org>","List-Unsubscribe":"<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>","List-Subscribe":"<mailto:libc-alpha-subscribe@sourceware.org>","List-Archive":"<http://sourceware.org/ml/libc-alpha/>","List-Post":"<mailto:libc-alpha@sourceware.org>","List-Help":"<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>","Sender":"libc-alpha-owner@sourceware.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.4 required=5.0 tests=BAYES_00,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=alle, giorno,\n\tHx-spam-relays-external:2804, H*r:2804","X-HELO":"mail-qt0-f177.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc\n\t:content-transfer-encoding:message-id:references:to;\n\tbh=yAuHQEjZpEwMcPRTKoowjM82q+FizRJ3WQaijl3fksM=;\n\tb=MHTwrefjUlRhb9NJR48uVeIUYRsENi37io/KSg5mIYLIYKZ9CI3n1q+zj9gyK2zA5j\n\tv8eiD9RBuZatPhy9SIoLOQ5EtXm6SLWrcGECaRVuf35AyEj5RGGwHt7bJdd9w/xF5Wup\n\tpuSe4PAkECT6e8Xm3Snl4PvegaC8Y14eNolusMFhhtYYJb1BoDfz4XlMOzThuIKBvHxy\n\tzfLYVTZYvRRltQwMa2p+yqW1jkU/f51/eqfM5Hov6rRdI76R45KSWvdmGrRh06nOgsPO\n\thk7qssJcP1nERXhqRfb+v1NTuk77d3xG2JbEGsWh4wB0QRXVXvv0GuBlqrYaXBLBNxEu\n\tCSvw==","X-Gm-Message-State":"AHPjjUg6RDSo1e7GlLKYQlEA8/l9fdru6NiwICs3LQf40BuQrWLmxo1j\n\tlTOis59YyOw2oXtY","X-Google-Smtp-Source":"AOwi7QA74JjK9u1khKICaZSpTTa+WW5Os3jgmv1BJwxDHrXjn+sOpQPAKP0i2aGJSn4eDrxEXReTAg==","X-Received":"by 10.200.22.188 with SMTP id r57mr34003510qtj.230.1505657895370;\n\tSun, 17 Sep 2017 07:18:15 -0700 (PDT)","Content-Type":"text/plain;\n\tcharset=us-ascii","Mime-Version":"1.0 (1.0)","Subject":"Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ\n\t#866]","From":"Adhemerval Zanella <adhemerval.zanella@linaro.org>","In-Reply-To":"<224bb5ab-daf0-f433-156d-ae25b2ae873a@redhat.com>","Date":"Sun, 17 Sep 2017 11:18:11 -0300","Cc":"Paul Eggert <eggert@cs.ucla.edu>, Zack Weinberg <zackw@panix.com>,\n\tJoseph Myers <joseph@codesourcery.com>,\n\tAndreas Schwab <schwab@linux-m68k.org>,\n\tGNU C Library <libc-alpha@sourceware.org>","Content-Transfer-Encoding":"quoted-printable","Message-Id":"<5179DAE5-3CEA-4867-A1C3-A605B4A4FE0D@linaro.org>","References":"<1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org>\n\t<1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org>\n\t<878thop5fa.fsf@linux-m68k.org>\n\t<9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org>\n\t<450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu>\n\t<403decc7-e039-9be1-fb44-25d611540156@linaro.org>\n\t<alpine.DEB.2.20.1709111432360.18599@digraph.polyomino.org.uk>\n\t<CAKCAbMjxHb7e5Qf=C3ybPcmE3e78xpfLMQREvNm02CFk=843BQ@mail.gmail.com>\n\t<a57c2a1b-4c33-eee6-d9f4-cbb50ba1b69c@cs.ucla.edu>\n\t<CAKCAbMg7853z3drcVwZKr4D+MU6gq_HBCSH1OgiJzzH6=UzfvA@mail.gmail.com>\n\t<7bf58b8a-afc9-b934-9a4a-1616e71c03ff@cs.ucla.edu>\n\t<CAKCAbMh5Xgcfqf3=EzYe+R+dcnF9EiQyztRt62Rk68ctzef8CA@mail.gmail.com>\n\t<805e4d8a-de63-5253-e214-b3912ed221e3@cs.ucla.edu>\n\t<30b5f782-8fb0-5b38-3b4c-6ebf435bc91c@linaro.org>\n\t<95745cd2-0033-8a3c-92af-879c24d0d396@cs.ucla.edu>\n\t<c2a4ffe9-221b-c79e-5026-9753a55b2e0e@redhat.com>\n\t<74d2ab7c-d6e1-10ff-a254-498438c999fe@cs.ucla.edu>\n\t<224bb5ab-daf0-f433-156d-ae25b2ae873a@redhat.com>","To":"Florian Weimer <fweimer@redhat.com>"}}]