Skip to content
Snippets Groups Projects
Verified Commit 419bd0f0 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix for some kinds of symbolic links

parent ebe9579d
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ impl<D: Disk> FileScheme<D> {
atime.subsec_nanos(),
)?;
let scheme = format!("{}:", scheme_name);
let canon = canonicalize(&format!("{}{}", scheme, url).as_bytes(), &buf[0..count]);
let canon = canonicalize(url.as_bytes(), &buf[0..count]);
let path = str::from_utf8(&canon[scheme.len()..])
.unwrap_or("")
.trim_matches('/');
......@@ -269,7 +269,7 @@ impl<D: Disk> SchemeMut for FileScheme<D> {
tx,
uid,
gid,
url,
&format!("{}:/{}", scheme_name, url),
node,
&mut resolve_nodes,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment