1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

dirname: in impl, make behavior for '/' fs root agnostic of host platform

This commit is contained in:
Nathan Ross 2016-02-19 20:02:09 -05:00
parent 396c1642a2
commit 51d7227aeb

View file

@ -60,7 +60,7 @@ directory).", NAME, VERSION);
}
}
None => {
if p.is_absolute() {
if p.is_absolute() || path == "/" {
print!("/");
} else {
print!(".");