diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-07-23 10:10:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-23 10:10:53 +0200 |
commit | 1415e04603b7c243d70a70231d7d3eb184224597 (patch) | |
tree | fc4f6bef0fb8782665a90f015eacdb13e949cab4 /src/coredump/coredump.c | |
parent | 771de3f506ac5b9f5846acae70d8e558d969d018 (diff) | |
parent | 476b8254d95488d09eebdbd175494aaafac23a3e (diff) |
Merge pull request #3785 from keszybz/less-return-errno
Use "return log_error_errno(...)" in more places + related fixes
Diffstat (limited to 'src/coredump/coredump.c')
-rw-r--r-- | src/coredump/coredump.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index e5719e67c3..043d785dd4 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -157,10 +157,8 @@ static int fix_acl(int fd, uid_t uid) { if (acl_create_entry(&acl, &entry) < 0 || acl_set_tag_type(entry, ACL_USER) < 0 || - acl_set_qualifier(entry, &uid) < 0) { - log_error_errno(errno, "Failed to patch ACL: %m"); - return -errno; - } + acl_set_qualifier(entry, &uid) < 0) + return log_error_errno(errno, "Failed to patch ACL: %m"); if (acl_get_permset(entry, &permset) < 0 || acl_add_perm(permset, ACL_READ) < 0) |