1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

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
commit 1ade1cc0bf

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(