···195 .wrap_err_with(|| format!("failed to resolve symlink of {:?}", source))?;
196197 // Create the link, then push its target to the queue
198- if !target.exists() {
199 unix::fs::symlink(&link_target, &target).wrap_err_with(|| {
200 format!("failed to symlink {:?} to {:?}", link_target, target)
201 })?;
···195 .wrap_err_with(|| format!("failed to resolve symlink of {:?}", source))?;
196197 // Create the link, then push its target to the queue
198+ if !target.exists() && !target.is_symlink() {
199 unix::fs::symlink(&link_target, &target).wrap_err_with(|| {
200 format!("failed to symlink {:?} to {:?}", link_target, target)
201 })?;