Skip to content

fix(systemctl): harden unit output parsing - #15

Merged
taigrr merged 1 commit into
masterfrom
cd/harden-unit-file-parsing
Jul 29, 2026
Merged

fix(systemctl): harden unit output parsing#15
taigrr merged 1 commit into
masterfrom
cd/harden-unit-file-parsing

Conversation

@taigrr

@taigrr taigrr commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • parse masked unit output with strings.Fields so normal aligned or tabular systemctl list-unit-files output is recognized
  • normalize unit suffix handling for masked checks and socket lookup helpers
  • add host-independent tests for masked unit parsing and unit name normalization

Tests

  • go generate ./...
  • go test -race ./...
  • staticcheck ./...

@taigrr
taigrr merged commit 70bc6da into master Jul 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant