#156491 parchive: Error reading PAR file: Success

Package:
parchive
Source:
parchive
Description:
Use PAR files to reconstruct missing parts of multi-part archives
Submitter:
"Glenn Maynard"
Date:
2005-07-18 04:03:55 UTC
Severity:
normal
#156491#5
Date:
2002-08-12 23:54:25 UTC
From:
To:
07:52pm glenn@zewt.pts/8 [~] parchive r *.p??
Checking AoCGD.pdf
AoCGD.pdf: Not a PAR file
Checking .fetchmail.pid
Error reading PAR file: Success

Looks like a standard case of using errno when it's not valid.

#156491#8
Date:
2002-08-13 21:04:01 UTC
From:
To:
    Hello,

    Agreed, it looks like line 320 of rwpar.c is the culprit:

:                 if (!create || (errno != ENOENT)) {
:                         if (!silent)
:                                 perror("Error reading PAR file");
:                         file_close(par.f);
:                         return 0;
:                 }

    That should probably be changed to a fprintf(stderr ..., but I'll leave
that to your discretion.  As I keep saying, I'm essentially not able to do
any work on Debian until mid September, but if you wait that long, you can
expect a trivial patch from me.  I'm pretty sure you can do it yourself
though.  :-)

    (Thanks for the bug report, Glenn.)

Rene