mirror of
https://github.com/juanfont/headscale.git
synced 2025-09-16 17:50:44 +02:00
integration: validate expected online status in ping
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
4927e9d590
commit
306d8e1bd4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user