Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 26287
Collapse All | Expand All

(-)openafs/src/pinstall/install.c (-5 / +11 lines)
Lines 50-56 Link Here
50
#include <afs/param.h>
50
#include <afs/param.h>
51
51
52
RCSID
52
RCSID
53
    ("$Header: /cvs/openafs/src/pinstall/install.c,v 1.21 2003/07/25 04:38:03 shadow Exp $");
53
    ("$Header: /cvs/openafs/src/pinstall/install.c,v 1.22 2003/08/08 21:00:09 shadow Exp $");
54
54
55
#include <stdio.h>
55
#include <stdio.h>
56
#include <pwd.h>
56
#include <pwd.h>
Lines 183-188 Link Here
183
{
183
{
184
    int pid;
184
    int pid;
185
    pid_t status;
185
    pid_t status;
186
    static char *env[] = { 
187
	0,
188
    };
186
    static char *strip[] = {
189
    static char *strip[] = {
187
	"strip", 0, 0,
190
	"strip", 0, 0,
188
    };
191
    };
Lines 201-207 Link Here
201
    case 0:			/* child        */
204
    case 0:			/* child        */
202
	copy[1] = iname;
205
	copy[1] = iname;
203
	copy[2] = oname;
206
	copy[2] = oname;
204
	execve("/bin/cp", copy, NULL);
207
	execve("/bin/cp", copy, env);
205
	perror("/bin/cp");
208
	perror("/bin/cp");
206
	exit(1);
209
	exit(1);
207
210
Lines 246-252 Link Here
246
#else
249
#else
247
#define	STRIP_BIN	"/bin/strip"
250
#define	STRIP_BIN	"/bin/strip"
248
#endif
251
#endif
249
	execve(STRIP_BIN, strip, NULL);
252
	execve(STRIP_BIN, strip, env);
250
	perror(STRIP_BIN);
253
	perror(STRIP_BIN);
251
	exit(1);
254
	exit(1);
252
255
Lines 272-277 Link Here
272
quickStrip(char *iname, char *oname, int ignored, int copy_only)
275
quickStrip(char *iname, char *oname, int ignored, int copy_only)
273
{
276
{
274
    int pid, status;
277
    int pid, status;
278
    static char *env[] = { 
279
	0,
280
    };
275
    static char *strip[] = {
281
    static char *strip[] = {
276
	"strip", 0, 0,
282
	"strip", 0, 0,
277
    };
283
    };
Lines 290-296 Link Here
290
    case 0:			/* child        */
296
    case 0:			/* child        */
291
	copy[1] = iname;
297
	copy[1] = iname;
292
	copy[2] = oname;
298
	copy[2] = oname;
293
	execve("/bin/cp", copy, 0);
299
	execve("/bin/cp", copy, env);
294
	perror("/bin/cp");
300
	perror("/bin/cp");
295
	exit(1);
301
	exit(1);
296
302
Lines 328-334 Link Here
328
334
329
    case 0:			/* child        */
335
    case 0:			/* child        */
330
	strip[1] = oname;
336
	strip[1] = oname;
331
	execve("/bin/strip", strip, 0);
337
	execve("/bin/strip", strip, env);
332
	perror("/bin/strip");
338
	perror("/bin/strip");
333
	exit(1);
339
	exit(1);
334
340

Return to bug 26287