nixpkgs/pkgs/test/make-binary-wrapper/inherit-argv0.c
2021-12-02 04:03:36 +01:00

9 lines
182 B
C

// makeCWrapper /path/to/executable \
--inherit-argv0
#include <unistd.h>
#include <stdlib.h>
int main(int argc, char **argv) {
return execv("/path/to/executable", argv);
}