integration: validate expected online status in ping

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby authored and Kristoffer Dalby committed 2025-09-09 09:40:00 +02:00
1 parent 4927e9d590
commit 306d8e1bd4
1 file changed
+2
+2
View File
@@ -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 {