mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
dirname: in impl, make behavior for '/' fs root agnostic of host platform
This commit is contained in:
@@ -60,7 +60,7 @@ directory).", NAME, VERSION);
|
||||
}
|
||||
}
|
||||
None => {
|
||||
if p.is_absolute() {
|
||||
if p.is_absolute() || path == "/" {
|
||||
print!("/");
|
||||
} else {
|
||||
print!(".");
|
||||
|
||||
Reference in New Issue
Block a user