diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-04-12 11:34:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-04-12 11:34:44 +0200 |
commit | 1ade1cc0bfde6171e9142ec8ed6d2c3492367b7d (patch) | |
tree | ef22f1f4ae6486eda7854e1c00de1eb693f50319 /src | |
parent | 6d10d308c6cd16528ef58fa4f5822aef936862d3 (diff) | |
parent | 3de1521427dee61000c1c124a521182b301a50de (diff) |
Merge pull request #3016 from martinpitt/systemctl-enable
Install: correctly report symlink creations
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/install.c | 4 |
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( |