bsdtar / libarchive bug?

Steven Hartland killing at multiplay.co.uk
Thu Dec 8 09:29:53 PST 2005


It seems bsdtar can create files it cant read. i.e. it will happily create
empty tar.gz files but when it comes to read them the following error
is output:
tar: Unrecognized archive format: Inappropriate file type or format

Having a look at libarchive shows the following code:
    /* An empty archive is a serious error. */
    if (bytes_read == 0) {
        archive_set_error(a, ARCHIVE_ERRNO_FILE_FORMAT,
            "Empty input file");
        return (ARCHIVE_FATAL);
    }

Which is where I expect the issue is, why would an empty archive
be fatal? I can see any reason for this, yes its strange but there's
nothing fatal about it imo.

    Steve


================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137
or return the E.mail to postmaster at multiplay.co.uk.



More information about the freebsd-stable mailing list