Skip to content

Commit be8be07

Browse files
committed
Use full path when checking for conflicts
Otherwise the target might not be resolved with realpath() and we get false positives
1 parent 6e3a568 commit be8be07

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modman.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ public function doDeploy($bForce = false, $bCopy = false) {
557557
if (!is_dir($sDirectoryName)) {
558558
$oConflicts->checkForConflict($sDirectoryName, 'dir');
559559
}
560-
$oConflicts->checkForConflict($oLine->getSymlink(), 'link', $oLine->getTarget());
560+
$sFullTarget = $sTarget . DIRECTORY_SEPARATOR . $oLine->getTarget();
561+
$oConflicts->checkForConflict($oLine->getSymlink(), 'link', $sFullTarget);
561562
} else {
562563
unset($aLines[$iLine]);
563564
}

0 commit comments

Comments
 (0)