Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

xarchiver can't open tar files created with this library

オープン
#848 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
backend

調査の方向性

示されている TarOutputStream の例と生成された test.tar から始め、その構造を、Linux 上で xarchiver が開く tar アーカイブと比較します。アーカイブが tar と 7zip に対して有効なままであることを確認しつつ、xarchiver が拒否するものを特定します。完了条件は、xarchiver がライブラリによって生成されたアーカイブを開けることです。

索引モデルが issue の本文から書いたものです。

説明

bug tar
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.

主要言語
C#
スター
3.9k
フォーク
1k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

icsharpcode/SharpZipLib のほかの issue

icsharpcode/SharpZipLib の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。