Re: [PATCH nft v2] main: display errors through stderr

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

 



On 24.02, Pablo Neira Ayuso wrote:
> Debugging still goes through stdout as Patrick requests.
> 
> Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1000
> Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>

Thinking about it, EREC_INFORMATIONAL should also go to stdout I
suppose. But since we don't have any of those yet, we can change
it once we get the first message of this type.

> ---
>  src/main.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/main.c b/src/main.c
> index b447aad..4590c30 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -361,7 +361,7 @@ int main(int argc, char * const *argv)
>  		rc = NFT_EXIT_FAILURE;
>  out:
>  	scanner_destroy(scanner);
> -	erec_print_list(stdout, &msgs);
> +	erec_print_list(stderr, &msgs);
>  
>  	xfree(buf);
>  	return rc;
> -- 
> 1.7.10.4
> 
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux