Skip to content

Commit

Permalink
Remove the .trim_end_matches('\0') workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre authored May 30, 2023
1 parent 3713d52 commit f345cf0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/uu/uname/src/uname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
}

if nodename || all {
// maint: [2023-01-14; rivy] remove `.trim_end_matches('\0')` when platform-info nodename-NUL bug is fixed (see GH:uutils/platform-info/issues/32)
output.push_str(uname.nodename().to_string_lossy().trim_end_matches('\0'));
output.push_str(uname.nodename().to_string_lossy());
output.push(' ');
}

Expand Down

0 comments on commit f345cf0

Please sign in to comment.