Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xarchiver can't open tar files created with this library #848

Open
I-Katie opened this issue Oct 2, 2023 · 0 comments
Open

xarchiver can't open tar files created with this library #848

I-Katie opened this issue Oct 2, 2023 · 0 comments
Labels
bug tar Related to TAR file format

Comments

@I-Katie
Copy link

I-Katie commented Oct 2, 2023

Describe the bug

The .tar files created with the library can be opened with 7zip, they can be extracted with "tar -xf" but the linux program xarchiver (default with some low memory graphical instalations - in my case debian with xfce) says that the archive format is not recognized.
Another place where xarchiver is installed by default is the raspberry pi debian instalation.

Reproduction Code

No response

Steps to reproduce

Simplest example I can come up with:

using FileStream os = new FileStream("test.tar", FileMode.Create);
using TarOutputStream tar = new TarOutputStream(os);

byte[] data = Encoding.UTF8.GetBytes("my text contents");

TarEntry entry = TarEntry.CreateTarEntry("myfile.txt");
entry.Size = data.Length;

tar.PutNextEntry(entry);

tar.Write(data);

tar.CloseEntry();

Expected behavior

The archive should be opened normally as it does in other applications.

Operating System

Linux

Framework Version

.NET 6

Tags

Tar

Additional context

There is a chance that xarchiver is just bad considering other software opens the archive.
But then again xarchiver opens tar archives made with other software.

@I-Katie I-Katie added the bug label Oct 2, 2023
@github-actions github-actions bot added the tar Related to TAR file format label Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug tar Related to TAR file format
Projects
None yet
Development

No branches or pull requests

1 participant