summaryrefslogtreecommitdiff
path: root/src/cmd/restore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/restore.rs')
-rw-r--r--src/cmd/restore.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/restore.rs b/src/cmd/restore.rs
index cb42114..147c422 100644
--- a/src/cmd/restore.rs
+++ b/src/cmd/restore.rs
@@ -168,11 +168,9 @@ fn restore_symlink(path: &Path, entry: &FilesystemEntry) -> RestoreResult<()> {
debug!(" mkdir {}", parent.display());
if !parent.exists() {
std::fs::create_dir_all(parent)?;
- {
- symlink(path, entry.symlink_target().unwrap())?;
- }
}
- debug!("restored regular {}", path.display());
+ symlink(entry.symlink_target().unwrap(), path)?;
+ debug!("restored symlink {}", path.display());
Ok(())
}