Merge pull request #3016 from martinpitt/systemctl-enable

Install: correctly report symlink creations
This commit is contained in:
Lennart Poettering
2016-04-12 11:34:44 +02:00
+2 -2
View File
@@ -294,7 +294,7 @@ static int create_symlink(
if (symlink(old_path, new_path) >= 0) {
unit_file_changes_add(changes, n_changes, UNIT_FILE_SYMLINK, new_path, old_path);
return 0;
return 1;
}
if (errno != EEXIST)
@@ -317,7 +317,7 @@ static int create_symlink(
unit_file_changes_add(changes, n_changes, UNIT_FILE_UNLINK, new_path, NULL);
unit_file_changes_add(changes, n_changes, UNIT_FILE_SYMLINK, new_path, old_path);
return 0;
return 1;
}
static int mark_symlink_for_removal(