|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T q
Length: 773 (0x305)
Types: TextFile
Names: »quipurc.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/others/quipu/uips/dish/quipurc.c«
/* quipurc.c - */
#ifndef lint
static char *rcsid = "$Header: /f/osi/others/quipu/uips/dish/RCS/quipurc.c,v 6.0 89/03/18 23:34:31 mrose Rel $";
#endif
/*
* $Header: /f/osi/others/quipu/uips/dish/RCS/quipurc.c,v 6.0 89/03/18 23:34:31 mrose Rel $
*
*
* $Log: quipurc.c,v $
* Revision 6.0 89/03/18 23:34:31 mrose
* Release 5.0
*
*/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifndef ETCDIR
#define ETCDIR "/etc/"
#endif
/* ARGSUSED */
main (argc,argv)
int argc;
char ** argv;
{
char buffer [1024];
struct stat buf;
char * sprintf ();
(void) stat (argv[0],&buf);
if (setuid (buf.st_uid) == -1) {
(void) fprintf (stderr,"can't set uid\n");
exit (-1);
}
(void) sprintf (buffer,"%sdishinit",ETCDIR);
exit (system (buffer));
}