Skip to content

Trim null byte from /proc/<pid>/attr/current#733

Merged
dalance merged 1 commit intodalance:masterfrom
ErrorNoInternet:trim-seccontext-null-byte
Jan 6, 2025
Merged

Trim null byte from /proc/<pid>/attr/current#733
dalance merged 1 commit intodalance:masterfrom
ErrorNoInternet:trim-seccontext-null-byte

Conversation

@ErrorNoInternet
Copy link
Contributor

@ErrorNoInternet ErrorNoInternet commented Jan 4, 2025

This made a ^@ show in less and made the columns misaligned because most terminals don't render null bytes, and one is present at the end of attr/current.

Replacing trim because it shouldn't have any spaces already.

This made a ^@ show in `less` and made the columns misaligned because
most terminals don't render null bytes, and one is present at the end
of attr/current.

Replacing trim because it shouldn't have any spaces already.
@dalance
Copy link
Owner

dalance commented Jan 6, 2025

Thank you for your contribution!
I'll merge this PR.

@dalance dalance merged commit 02d3a07 into dalance:master Jan 6, 2025
@ErrorNoInternet ErrorNoInternet deleted the trim-seccontext-null-byte branch January 6, 2025 11:50
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