[Bug 213335] tar: INTERNAL ERROR: Function 'archive_read_disk_open' invoked with archive structure in state 'header', should be in state 'new/closed': Unknown error: -1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Oct 9 10:40:11 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213335

Wolfram Schneider <wosch at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|tar: INTERNAL ERROR:        |tar: INTERNAL ERROR:
                   |                            |Function
                   |                            |'archive_read_disk_open'
                   |                            |invoked with archive
                   |                            |structure in state
                   |                            |'header', should be in
                   |                            |state 'new/closed': Unknown
                   |                            |error: -1

--- Comment #1 from Wolfram Schneider <wosch at FreeBSD.org> ---
I got a strange error message from tar if I try to add file to an archive which
don't exists.

How to repeat:

$ tar cf -  foo bar
tar: foo: Cannot stat: No such file or directory
tar: INTERNAL ERROR: Function 'archive_read_disk_open' invoked with archive
structure in state 'header', should be in state 'new/closed': Unknown error: -1
tar: Error exit delayed from previous errors.

what I expected (as on MacOS with an older bsdtar)

$ tar cf - foo bar
tar: foo: Cannot stat: No such file or directory
tar: bar: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list