Skip to content

Fix parsing for mountinfo and related fields when presented with empty fields#357

Merged
eminence merged 1 commit intomasterfrom
fix_pasta_mountinfo
Aug 27, 2025
Merged

Fix parsing for mountinfo and related fields when presented with empty fields#357
eminence merged 1 commit intomasterfrom
fix_pasta_mountinfo

Conversation

@eminence
Copy link
Owner

Issue #333 found a case where some fields in mount-related files contain a totally empty field (which can look like two consecutive spaces in files that have space-delimited fields).

This general fix is to use split(' ') instead of split_whitespace() since the former does not collapse consecutive spaces

…y fields

Issue #333 found a case where some fields in mount-related files
contain a totally empty field (which can look like two consecutive
spaces in files that have space-delimited fields).

This general fix is to use `split(' ')` instead of `split_whitespace()`
since the former does not collapse consecutive spaces
@eminence eminence merged commit 432e8c2 into master Aug 27, 2025
12 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