summary refs log tree commit diff
path: root/pkgs/test/make-binary-wrapper/inherit-argv0.c
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/test/make-binary-wrapper/inherit-argv0.c')
-rw-r--r--pkgs/test/make-binary-wrapper/inherit-argv0.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/test/make-binary-wrapper/inherit-argv0.c b/pkgs/test/make-binary-wrapper/inherit-argv0.c
new file mode 100644
index 00000000000..e1c2bc926aa
--- /dev/null
+++ b/pkgs/test/make-binary-wrapper/inherit-argv0.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+#include <stdlib.h>
+
+int main(int argc, char **argv) {
+    return execv("/send/me/flags", argv);
+}