{
int pid;
pid_t status;
- static char *env[] = {
- 0,
- };
static char *strip[] = {
"strip", 0, 0,
};
case 0: /* child */
copy[1] = iname;
copy[2] = oname;
- execve("/bin/cp", copy, env);
+ execv("/bin/cp", copy);
perror("/bin/cp");
exit(1);
#else
#define STRIP_BIN "/bin/strip"
#endif
- execve(STRIP_BIN, strip, env);
+ execv(STRIP_BIN, strip);
perror(STRIP_BIN);
exit(1);
quickStrip(char *iname, char *oname, int ignored, int copy_only)
{
int pid, status;
- static char *env[] = {
- 0,
- };
static char *strip[] = {
"strip", 0, 0,
};
case 0: /* child */
copy[1] = iname;
copy[2] = oname;
- execve("/bin/cp", copy, env);
+ execv("/bin/cp", copy);
perror("/bin/cp");
exit(1);
case 0: /* child */
strip[1] = oname;
- execve("/bin/strip", strip, env);
+ execv("/bin/strip", strip);
perror("/bin/strip");
exit(1);