Commit 83f2f551 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

#321953 - small fix

parent f48e7692
......@@ -257,12 +257,10 @@ function provision_path_symlink($path, &$target, &$reason) {
$reason = t("A symlink already exists at target, but it is pointing to @link", array("@link" => readlink($target)));
return FALSE;
}
if (is_link($target) && (readlink($target) != $path)) {
$reason = t("The symlink has already been created. Doing nothing.");
if (is_link($target) && (readlink($target) == $path)) {
$target = TRUE;
return TRUE;
}
if (symlink($path, $target)) {
$target = TRUE;
return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment