mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
hostname: bug fix for non-windows xgethostname and add test case
Cstr::from_bytes_with_nul needs input bytes null terminated. Current version does not include the last null byte, hence Cstr::from_bytes_with_nul will panic with error 'FromBytesWithNulError { kind: NotNulTerminated }'
This commit is contained in:
parent
5f9bb70422
commit
58b4075566
3 changed files with 17 additions and 5 deletions
|
@ -91,6 +91,7 @@ generic! {
|
|||
"tsort", test_tsort;
|
||||
"unexpand", test_unexpand;
|
||||
"uniq", test_uniq;
|
||||
"wc", test_wc;
|
||||
// Be aware of the trailing semicolon after the last item
|
||||
"wc", test_wc
|
||||
"hostname", test_hostname
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue