Add errno to the struct pkg_event.e_errno so errno is not accidentally overwritten somewhere in the middle. Add error message in json for ERRNO events, add the errno number to the data object
modified libpkg/pkg.h.in
@@ -1131,6 +1131,7 @@ struct pkg_event {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/pkg_event.c
@@ -25,6 +25,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -52,8 +54,12 @@ pipeevent(struct pkg_event *ev)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -353,6 +359,7 @@ pkg_emit_errno(const char *func, const char *arg)
|
|
|
|
|
|
| + | |
|
|
|
|
|