From 050853849013dd312d4653e2a32fcc2ff98aa36a Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Fri, 3 May 2019 12:23:27 +0800 Subject: [PATCH] Fix symlink args --- rcore-fs-fuse/src/zip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), }