chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e56b37
)
service: don't accept negative ERRNO= notification messages
author
Lennart Poettering
<lennart@poettering.net>
Mon, 7 Jul 2014 15:32:44 +0000
(17:32 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 7 Jul 2014 15:32:44 +0000
(17:32 +0200)
src/core/service.c
patch
|
blob
|
history
diff --git
a/src/core/service.c
b/src/core/service.c
index 5c54a34bcdc7f3b98a4f1a90e6f195516bc5b01d..d5aff990964d8969546acc16575b916cb49eec3e 100644
(file)
--- a/
src/core/service.c
+++ b/
src/core/service.c
@@
-2637,7
+2637,7
@@
static void service_notify_message(Unit *u, pid_t pid, char **tags) {
if (e) {
int status_errno;
- if (safe_atoi(e + 6, &status_errno) < 0)
+ if (safe_atoi(e + 6, &status_errno) < 0
|| status_errno < 0
)
log_warning_unit(u->id, "Failed to parse ERRNO= field in notification message: %s", e);
else {
log_debug_unit(u->id, "%s: got %s", u->id, e);