It's not possible to tar files starting with "system" in the file name.
まだ誰も着手していません。
評価
調査の方向性
SharpZipLib 1.4.2 を使用して、TarArchive.CreateOutputTarArchive、TarEntry.CreateEntryFromFile、WriteEntry から開始し、Windows/.NET Framework 4.x のケースを再現します。ディレクトリエントリがどのように列挙されるかを追跡し、"system" で始まるファイルがスキップされないことを確認します。生成されたアーカイブに他のファイルと同様に system.xml、system2.xml、system.txt が含まれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
I am trying to tar a folder that contains a file that is called "system.xml". It doesn't work. If I however change the name of the file to "ssystem.xml" it works. But if I choose the name "system2.xml" or "system.txt" it doesn't work. So in other words, when I try to create an archive of files and one of the files starts with "system" it isn't added to the archive. Here is my code:
static Task<string> CompressLocalTest()
{
return Task.Run(() =>
{
string sourcePath = @"C:\Users\bla\Documents\Backup";
string destPath = @"C:\Users\bla\Documents\ssss\dd\fck.tar";
using (var outStream = File.Create(destPath))
{
var tarArchive = TarArchive.CreateOutputTarArchive(outStream);
AddDirectoryFilesToTar(tarArchive, sourcePath, true);
}
return destPath;
});
}
public static void AddDirectoryFilesToTar(TarArchive tarArchive, string sourceDirectory, bool recurse)
{
TarEntry tarEntry = TarEntry.CreateEntryFromFile(sourceDirectory);
tarArchive.WriteEntry(tarEntry, recurse);
}
Reproduction Code
No response
Steps to reproduce
- Make a folder that contains a file that has a name that starts with "system"
- Try to make a tar archive using the SharpZipLib code.
Expected behavior
It should add the system.xml file like any other file. When I for instance tar with 7zip it works.
Operating System
Windows
Framework Version
.NET Framework 4.x
Tags
Tar
Additional context
I am using SharpZipLib 1.4.2.
- 主要言語
- C#
- スター
- 3.9k
- フォーク
- 1k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
icsharpcode/SharpZipLib のほかの issue
-
*no response* bug
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
icsharpcode/SharpZipLib#905 · コメント 1 件 ·
-
bug bzip2
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
icsharpcode/SharpZipLib#904 ·
-
SetLevel in ZipFile オープンenhancement zip
難易度 2/5 1〜2日 初心者へのやさしさ 55/100
icsharpcode/SharpZipLib#903 ·
-
*no response* bug
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
icsharpcode/SharpZipLib#901 · コメント 1 件 ·
-
*no response* bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
icsharpcode/SharpZipLib#894 · コメント 1 件 ·
icsharpcode/SharpZipLib の issue をすべて見る
似ている issue
-
untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
dotnet/dotnet-api-docs#13095 ·
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
newrelic/newrelic-dotnet-agent#3850 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
LuckyPennySoftware/AutoMapper#4660 ·