summary refs log tree commit diff
path: root/pkgs/test/make-binary-wrapper/basic.c
blob: de366c51963069d86b1775ea0b626c18fdaea65e (plain) (blame)
1
2
3
4
5
6
7
8
9
// 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);
}