Files
Arquivotheca.SunOS-4.1.4/release/makeinstall.c
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

31 lines
433 B
C

#ifndef lint
static char sccsid[] = "@(#)makeinstall.c 1.1 94/10/31 SMI";
#endif
/*
* Copyright (c) 1985 by Sun Microsystems, Inc.
*/
main(a,v)
char **v;
{
char *nvecs[200];
register int uid, i;
uid = geteuid();
setuid(uid);
nvecs[0] = "make";
nvecs[1] = "-e";
nvecs[2] = "install";
--a;
i = 3;
while (a-- > 0)
nvecs[i++] = *++v;
nvecs[i] = 0;
execvp("make",nvecs);
printf("exec of make fails\n");
exit(1);
}