Lines 172-177
Link Here
|
172 |
char *iname, *oname; { |
172 |
char *iname, *oname; { |
173 |
int pid; |
173 |
int pid; |
174 |
pid_t status; |
174 |
pid_t status; |
|
|
175 |
static char *env[] = { |
176 |
0, |
177 |
}; |
175 |
static char *strip[] = { |
178 |
static char *strip[] = { |
176 |
"strip", 0, 0, |
179 |
"strip", 0, 0, |
177 |
}; |
180 |
}; |
Lines 190-196
Link Here
|
190 |
case 0: /* child */ |
193 |
case 0: /* child */ |
191 |
copy[1] = iname; |
194 |
copy[1] = iname; |
192 |
copy[2] = oname; |
195 |
copy[2] = oname; |
193 |
execve("/bin/cp", copy, (char **)0); |
196 |
execve("/bin/cp", copy, env); |
194 |
perror("/bin/cp"); |
197 |
perror("/bin/cp"); |
195 |
exit(1); |
198 |
exit(1); |
196 |
|
199 |
|
Lines 236-242
Link Here
|
236 |
#else |
239 |
#else |
237 |
#define STRIP_BIN "/bin/strip" |
240 |
#define STRIP_BIN "/bin/strip" |
238 |
#endif |
241 |
#endif |
239 |
execve(STRIP_BIN, strip, (char **)0); |
242 |
execve(STRIP_BIN, strip, env); |
240 |
perror(STRIP_BIN); |
243 |
perror(STRIP_BIN); |
241 |
exit(1); |
244 |
exit(1); |
242 |
|
245 |
|
Lines 281-286
Link Here
|
281 |
quickStrip (iname, oname, ignored, copy_only) |
284 |
quickStrip (iname, oname, ignored, copy_only) |
282 |
char *iname, *oname; { |
285 |
char *iname, *oname; { |
283 |
int pid, status; |
286 |
int pid, status; |
|
|
287 |
static char *env[] = { |
288 |
0, |
289 |
}; |
284 |
static char *strip[] = { |
290 |
static char *strip[] = { |
285 |
"strip", 0, 0, |
291 |
"strip", 0, 0, |
286 |
}; |
292 |
}; |
Lines 299-306
Link Here
|
299 |
case 0: /* child */ |
305 |
case 0: /* child */ |
300 |
copy[1] = iname; |
306 |
copy[1] = iname; |
301 |
copy[2] = oname; |
307 |
copy[2] = oname; |
302 |
execve("/bin/cp", copy, 0); |
308 |
execve("/bin/cp", copy, env); |
303 |
perror("/bin/cp"); |
309 |
perror("/env/cp"); |
304 |
exit(1); |
310 |
exit(1); |
305 |
|
311 |
|
306 |
default: /* parent */ |
312 |
default: /* parent */ |
Lines 337-343
Link Here
|
337 |
|
343 |
|
338 |
case 0: /* child */ |
344 |
case 0: /* child */ |
339 |
strip[1] = oname; |
345 |
strip[1] = oname; |
340 |
execve("/bin/strip", strip, 0); |
346 |
execve("/bin/strip", strip, env); |
341 |
perror("/bin/strip"); |
347 |
perror("/bin/strip"); |
342 |
exit(1); |
348 |
exit(1); |
343 |
|
349 |
|