Add errno to the plugin errno, directly uses the errno from the event in the frontend
modified libpkg/pkg.h.in
@@ -1190,6 +1190,7 @@ struct pkg_event {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/pkg_event.c
@@ -273,10 +273,12 @@ pipeevent(struct pkg_event *ev)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -592,6 +594,7 @@ pkg_plugin_errno(struct pkg_plugin *p, const char *func, const char *arg)
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified pkg/event.c
@@ -54,7 +54,8 @@ event_callback(void *data, struct pkg_event *ev)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -226,7 +227,8 @@ event_callback(void *data, struct pkg_event *ev)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|