bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/2] posix: Add compat glob symbol to not follow dangling


From: Adhemerval Zanella
Subject: Re: [PATCH v2 1/2] posix: Add compat glob symbol to not follow dangling symbols
Date: Mon, 25 Sep 2017 14:03:46 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 22/09/2017 18:43, Paul Eggert wrote:
> On 09/22/2017 06:02 AM, Adhemerval Zanella wrote:
>> +               ((flags & (GLOB_ERR | GLOB_NOESCAPE | GLOB_ALTDIRFUNC))
>> +               | GLOB_NOSORT | GLOB_ONLYDIR),
>
> The indenting is not quite right here: the "|" should be under the 2nd
> "(" in the previous line, not under the 1st.
Ack.

>
>> +          result = __glob (onealt,
>> +                   ((flags & ~(GLOB_NOCHECK | GLOB_NOMAGIC))
>> +                   | GLOB_APPEND), errfunc, pglob);
>
> As long as we're changing indenting anyway, we should fix the
> indenting here to match the usual GNU style. Something like this:
>
>               result = __glob (onealt,
>                                ((flags & ~(GLOB_NOCHECK | GLOB_NOMAGIC))
>                                 | GLOB_APPEND),
>                                errfunc, pglob);

Ack.

>
> Other than these minor indenting things it looks OK. glibc's glob.c is
> wrongly indented elsewhere, but that can be fixed separately.
>
> Proposed corresponding gnulib patch attached; it would keep gnulib
> glob.c in sync with glibc's, except for whitespace and the https:
> thing. CC'ing this to bug-gnulib.
I will commit both patch shortly, thanks for the review.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]