coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH 2/2] maint: add syntax-check rule to help avoid misuse of EXI


From: Pádraig Brady
Subject: Re: [PATCH 2/2] maint: add syntax-check rule to help avoid misuse of EXIT_FAILURE
Date: Wed, 04 Jul 2012 01:00:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

On 07/03/2012 08:19 PM, Jim Meyering wrote:
> Inspired by the EXIT_FAILURE problem Pádraig spotted
> and that Paul just fixed, I wrote a new syntax-check rule
> to help avoid that sort of problem.  The following programs
> must avoid most new uses of EXIT_FAILURE:
> 
>   chroot.c
>   env.c
>   expr.c
>   ls.c
>   nice.c
>   nohup.c
>   printenv.c
>   setuidgid.c
>   stdbuf.c
>   system.h
>   timeout.c
>   tty.c
> 
> This new syntax-check rule caught a minor problem in
> our helper setuidgid (not installed) and I fixed another
> minor problem in the vicinity (dead code on error path).
> 
> Here are the two patches:

Nice one.
That check is certainly warranted.
Both patches look fine from a quick glance.

cheers,
Pádraig.



reply via email to

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