diff --git a/rcore-fs-fuse/src/zip.rs b/rcore-fs-fuse/src/zip.rs index 1be87ee..6ad3a71 100644 --- a/rcore-fs-fuse/src/zip.rs +++ b/rcore-fs-fuse/src/zip.rs @@ -71,7 +71,7 @@ pub fn unzip_dir(path: &Path, inode: Arc) -> Result<(), Box> { FileType::SymLink => { let mut buf: [u8; BUF_SIZE] = unsafe { uninitialized() }; let len = inode.read_at(0, buf.as_mut())?; - std::os::unix::fs::symlink(path, str::from_utf8(&buf[..len]).unwrap())?; + std::os::unix::fs::symlink(str::from_utf8(&buf[..len]).unwrap(), path)?; } _ => panic!("unsupported file type"), }