We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05449a0 commit a4818aaCopy full SHA for a4818aa
1 file changed
src/Tar/TarOutputStream.cs
@@ -34,6 +34,9 @@
34
// obligated to do so. If you do not wish to do so, delete this
35
// exception statement from your version.
36
37
+// HISTORY
38
+// 2012-06-04 Z-1419 Last char of file name was dropped if path length > 100
39
+
40
using System;
41
using System.IO;
42
@@ -284,7 +287,7 @@ public void PutNextEntry(TarEntry entry)
284
287
longHeader.GroupName = "";
285
288
longHeader.UserName = "";
286
289
longHeader.LinkName = "";
- longHeader.Size = entry.TarHeader.Name.Length;
290
+ longHeader.Size = entry.TarHeader.Name.Length + 1; // Plus one to avoid dropping last char
291
292
longHeader.WriteHeader(blockBuffer);
293
buffer.WriteBlock(blockBuffer); // Add special long filename header block
0 commit comments