nixpkgs/pkgs/test/make-binary-wrapper/basic.c

10 lines
198 B
C
Raw Normal View History

// makeCWrapper /path/to/executable
#include <unistd.h>
#include <stdlib.h>
int main(int argc, char **argv) {
argv[0] = "/path/to/executable";
return execv("/path/to/executable", argv);
}