From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50149 invoked by alias); 11 Sep 2017 17:25:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 49921 invoked by uid 89); 11 Sep 2017 17:25:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: mailbackend.panix.com X-Gm-Message-State: AHPjjUgytx7vKEqPG8svaWY6vMGzgeg8z4Lkd2dNQ0AzOmijOqp2cHmR TMUygCRCl5RE/8mnH0savHrmfhXHgg== X-Google-Smtp-Source: AOwi7QC+CfFGo+ik23/Mq57tqsxpHsskc9W6gQao8vS6ffR0rRJI0m3i0EJTTkWWrPtXJnyiKl7SKQV+1NWYl4pb8nc= X-Received: by 10.202.235.80 with SMTP id j77mr12532328oih.220.1505150727650; Mon, 11 Sep 2017 10:25:27 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1504643122-14874-1-git-send-email-adhemerval.zanella@linaro.org> <1504643122-14874-4-git-send-email-adhemerval.zanella@linaro.org> <878thop5fa.fsf@linux-m68k.org> <9455e298-8c48-c42a-0ec3-ffb8d166c69b@linaro.org> <450d2eab-f21a-f90c-6210-ea638787e339@cs.ucla.edu> <403decc7-e039-9be1-fb44-25d611540156@linaro.org> From: Zack Weinberg Date: Mon, 11 Sep 2017 17:25:00 -0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/9] posix: Allow glob to match dangling symlinks [BZ #866] To: Paul Eggert Cc: Joseph Myers , Adhemerval Zanella , Andreas Schwab , GNU C Library Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-09/txt/msg00454.txt.bz2 On Mon, Sep 11, 2017 at 12:53 PM, Paul Eggert wrote: > On 09/11/2017 07:38 AM, Zack Weinberg wrote: >> >> If this is done, the new symbol version should attempt to validate the >> altdirfuncs structure on entry > > > I don't see how glob could do that reliably and cheaply. How does one > validate that a pointer to a stat-like function is actually a pointer to a > stat-like function? All one can do is call the function and pray. It should be enough to make a dummy call, e.g. pglob->gl_lstat(".", &statbuf); zw