mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
fix/uname ~ strip any trailing NUL(s) from nodename() (from bug in platform-info)
This commit is contained in:
parent
b4e3e66236
commit
b5eaa8822f
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if nodename || all {
|
if nodename || all {
|
||||||
output.push_str(&uname.nodename());
|
// 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().trim_end_matches('\0'));
|
||||||
output.push(' ');
|
output.push(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue