summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-12 11:34:44 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-12 11:34:44 +0200
commit1ade1cc0bfde6171e9142ec8ed6d2c3492367b7d (patch)
treeef22f1f4ae6486eda7854e1c00de1eb693f50319 /src
parent6d10d308c6cd16528ef58fa4f5822aef936862d3 (diff)
parent3de1521427dee61000c1c124a521182b301a50de (diff)
Merge pull request #3016 from martinpitt/systemctl-enable
Install: correctly report symlink creations
Diffstat (limited to 'src')
-rw-r--r--src/shared/install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index ef8f485cae..0f08137f19 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -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(