From ffb43bb626cc4e5a6b696e96f54227de1214a4d6 Mon Sep 17 00:00:00 2001 From: hosted-fornet Date: Fri, 8 Nov 2024 17:21:57 -0800 Subject: [PATCH] vfs: fix bad change from d3ee13e that broke caps --- kinode/src/vfs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kinode/src/vfs.rs b/kinode/src/vfs.rs index 6743d685..a34a6f74 100644 --- a/kinode/src/vfs.rs +++ b/kinode/src/vfs.rs @@ -343,7 +343,8 @@ async fn handle_request( // current prepend to filepaths needs to be: /package_id/drive/path let (package_id, drive, rest) = parse_package_and_drive(&request.path, &vfs_path)?; - let drive = format!("{package_id}/{drive}"); + // must have prepended `/` here or else it messes up caps downstream, e.g. in run-tests + let drive = format!("/{package_id}/{drive}"); let action = request.action; let path = PathBuf::from(&request.path);