Displaying 2 results from an estimated 2 matches for "da3136a".
Did you mean:
ca1336a
2012 May 04
2
[PATCH] run-init: add drop_capabilities support
...t, initargs);
+ error = run_init(realroot, console, drop_caps, init, initargs);
/* If run_init returns, something went wrong */
fprintf(stderr, "%s: %s: %s\n", program, error, strerror(errno));
diff --git a/usr/kinit/run-init/run-init.h b/usr/kinit/run-init/run-init.h
index a95328e..da3136a 100644
--- a/usr/kinit/run-init/run-init.h
+++ b/usr/kinit/run-init/run-init.h
@@ -29,6 +29,6 @@
#define RUN_INIT_H
const char *run_init(const char *realroot, const char *console,
- const char *init, char **initargs);
+ const char *drop_caps, const char *init, char **initargs);
#...
2019 Jan 18
0
[klibc:master] run-init: Add dry-run mode
...program, error, strerror(errno));
- return 1;
+ if (error) {
+ fprintf(stderr, "%s: %s: %s\n", program, error, strerror(errno));
+ return 1;
+ } else {
+ /* Must have been a dry run */
+ return 0;
+ }
}
diff --git a/usr/kinit/run-init/run-init.h b/usr/kinit/run-init/run-init.h
index da3136a..02c34aa 100644
--- a/usr/kinit/run-init/run-init.h
+++ b/usr/kinit/run-init/run-init.h
@@ -28,7 +28,10 @@
#ifndef RUN_INIT_H
#define RUN_INIT_H
+#include <stdbool.h>
+
const char *run_init(const char *realroot, const char *console,
- const char *drop_caps, const char *init, char *...