Skip to content

Commit d3918c3

Browse files
committed
Fixed input file name
1 parent cc93a1f commit d3918c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/dockerjava/core/util/CompressArchiveUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static void tar(Path inputPath, Path outputPath, boolean gZipped, boolean
6868
try (TarArchiveOutputStream tarArchiveOutputStream = buildTarStream(outputPath, gZipped)) {
6969
if (!Files.isDirectory(inputPath)) {
7070
TarArchiveEntry tarEntry = new TarArchiveEntry(inputPath.getFileName().toString());
71-
if (filePath.toFile().canExecute()) {
71+
if (inputPath.toFile().canExecute()) {
7272
tarEntry.setMode(tarEntry.getMode() | 0755);
7373
}
7474
putTarEntry(tarArchiveOutputStream, tarEntry, inputPath);

0 commit comments

Comments
 (0)