diff options
author | Daniel Mack <github@zonque.org> | 2015-09-09 15:12:28 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-09-09 15:12:28 +0200 |
commit | d7acddde057d25a4fb7835943ef3c73f262ba54f (patch) | |
tree | cb6e0ab245a4ed43f1367b8164b8022f0e77fc13 /src/journal/coredumpctl.c | |
parent | 02736a9abce02eb53b0d504f96fc7b3e4f077020 (diff) | |
parent | 57255510c95ca3369d241502f26d7bbd8fac30a6 (diff) |
Merge pull request #1216 from poettering/coccinelle-fixes-2
Coccinelle fixes 2
Diffstat (limited to 'src/journal/coredumpctl.c')
-rw-r--r-- | src/journal/coredumpctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c index 0fa427003b..0546290318 100644 --- a/src/journal/coredumpctl.c +++ b/src/journal/coredumpctl.c @@ -646,8 +646,9 @@ static int save_core(sd_journal *j, int fd, char **path, bool *unlink_temp) { fdf = open(filename, O_RDONLY | O_CLOEXEC); if (fdf < 0) { - log_error_errno(errno, "Failed to open %s: %m", filename); - r = -errno; + r = log_error_errno(errno, + "Failed to open %s: %m", + filename); goto error; } |