factorize the code dropping privileges in one single place
modified src/event.c
@@ -48,7 +48,6 @@
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -227,7 +226,6 @@ event_sandboxed_call(pkg_sandbox_cb func, int fd, void *ud)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -262,19 +260,7 @@ event_sandboxed_call(pkg_sandbox_cb func, int fd, void *ud)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -300,7 +286,6 @@ event_sandboxed_get_string(pkg_sandbox_cb func, char **result, int64_t *len,
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -385,19 +370,7 @@ event_sandboxed_get_string(pkg_sandbox_cb func, char **result, int64_t *len,
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified src/pkgcli.h
@@ -277,6 +277,7 @@ void progressbar_tick(int64_t current, int64_t total);
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified src/utils.c
@@ -48,6 +48,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1001,3 +1002,23 @@ sbuf_flush(struct sbuf *buf)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |