bug-cpio
[Top][All Lists]
Advanced

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

Re: [Bug-cpio] cpio segfaulting when using -E


From: Mike Frysinger
Subject: Re: [Bug-cpio] cpio segfaulting when using -E
Date: Sat, 9 Oct 2010 19:54:01 -0400
User-agent: KMail/1.13.5 (Linux/2.6.35.4; KDE/4.5.1; x86_64; ; )

On Thursday, September 02, 2010 16:25:57 Sergey Poznyakoff wrote:
> TBSDY <address@hidden> ha escrit:
> >    I'm running cpio 2.10
> >    the function call_arg_error(...) it never actually exits. I'm
> >    fairly certain that it's meant to be calling on
> >    call_arg_fatail(...).
> 
> Nope, that would break all other usages of this function. What *was*
> intended was that read_pattern_file should have called open_fatal
> instead, i.e.:
> 
> diff --git a/src/copyin.c b/src/copyin.c
> index d41b17f..22e33dc 100644
> --- a/src/copyin.c
> +++ b/src/copyin.c
> @@ -866,7 +866,7 @@ read_pattern_file ()
> 
>    pattern_fp = fopen (pattern_file_name, "r");
>    if (pattern_fp == NULL)
> -    open_error (pattern_file_name);
> +    open_fatal (pattern_file_name);
>    while (ds_fgetstr (pattern_fp, &pattern_name, '\n') != NULL)
>      {
>        if (new_num_patterns >= max_new_patterns)
> 
> which is the fix I'm going to push.

hasnt been pushed yet ?
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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