From a7c602ef26cff83287514b5ccaa3af615e80afc6 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Wed, 27 Aug 2025 16:11:36 +0200 Subject: [PATCH] integration: validate expected online status in ping Signed-off-by: Kristoffer Dalby --- integration/hsic/hsic.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integration/hsic/hsic.go b/integration/hsic/hsic.go index 5686dd29..14999bc6 100644 --- a/integration/hsic/hsic.go +++ b/integration/hsic/hsic.go @@ -664,6 +664,7 @@ func extractTarToDirectory(tarData []byte, targetDir string) error { // Skip the top-level directory itself continue } + // Skip empty paths after stripping if cleanName == "" { continue @@ -682,6 +683,7 @@ func extractTarToDirectory(tarData []byte, targetDir string) error { if err := os.MkdirAll(filepath.Dir(targetPath), 0o755); err != nil { return fmt.Errorf("failed to create parent directories for %s: %w", targetPath, err) } + // Create file outFile, err := os.Create(targetPath) if err != nil {