5 int main(int argc
, char **argv
) {
6 char **argv_tmp
= calloc(6 + argc
+ 2 + 1, sizeof(*argv_tmp
));
7 assert(argv_tmp
!= NULL
);
14 argv_tmp
[6] = "*.txt";
15 for (int i
= 1; i
< argc
; ++i
) {
16 argv_tmp
[6 + i
] = argv
[i
];
18 argv_tmp
[6 + argc
+ 0] = "-foo";
19 argv_tmp
[6 + argc
+ 1] = "-bar";
20 argv_tmp
[6 + argc
+ 2] = NULL
;
23 argv
[0] = "/send/me/flags";
24 return execv("/send/me/flags", argv
);