Skip to content

fix(pl): /proc/mounts octal escapes + Encode compat for Perl 5.8#40

Merged
Neo23x0 merged 1 commit intoNextronSystems:script-robustnessfrom
Colossus14:script-robustness
Mar 18, 2026
Merged

fix(pl): /proc/mounts octal escapes + Encode compat for Perl 5.8#40
Neo23x0 merged 1 commit intoNextronSystems:script-robustnessfrom
Colossus14:script-robustness

Conversation

@Colossus14
Copy link
Copy Markdown

Two fixes in the Perl collector, found by Axiom-Loop review (verified round):

  1. /proc/mounts octal escapes — Mount points with spaces are encoded as \040 in /proc/mounts. The simple split(/\s+/) broke on these. Now decodes \NNN octal escapes before use, so network/special filesystem exclusions work on paths like /mnt/backup server.

  2. Encode::FB_DEFAULT() compatEncode::FB_DEFAULT() was introduced in Encode 2.53 (Perl 5.14), but the script targets Perl 5.8+. Replaced with the numeric constant 0x0001 which works on all versions.

…Perl 5.8

- /proc/mounts: decode \040 and other octal escapes in mount points
  so paths with spaces are correctly recognized and excluded
- Encode::FB_DEFAULT(): use numeric constant 0x0001 instead of the
  named function, which was only added in Encode 2.53 (Perl 5.14).
  The script targets Perl 5.8+, where the function doesn't exist.
@Neo23x0 Neo23x0 merged commit f511d3f into NextronSystems:script-robustness Mar 18, 2026
2 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.

2 participants