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