mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 21:34:18 +08:00
Fix CWD without trainling slash
This commit is contained in:
parent
96c269abe6
commit
a716eee4c3
@ -96,6 +96,9 @@ impl Context {
|
||||
canon
|
||||
} else {
|
||||
let mut canon = cwd.clone();
|
||||
if ! canon.ends_with(b"/") {
|
||||
canon.push(b'/');
|
||||
}
|
||||
canon.extend_from_slice(&path);
|
||||
canon
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user