mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
dirname: in impl, make behavior for '/' fs root agnostic of host platform
This commit is contained in:
parent
396c1642a2
commit
51d7227aeb
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ directory).", NAME, VERSION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
if p.is_absolute() {
|
if p.is_absolute() || path == "/" {
|
||||||
print!("/");
|
print!("/");
|
||||||
} else {
|
} else {
|
||||||
print!(".");
|
print!(".");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue