oops, forgot to commit these: garbage collect setuid stuff.
This commit is contained in:
parent
f81b2c2d22
commit
ccb39c10a2
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: extern.h,v 1.2 1995/03/21 08:19:01 cgd Exp $ */
|
/* $NetBSD: extern.h,v 1.3 1997/05/28 00:32:18 mrg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -48,5 +48,5 @@ void lostconn __P((int));
|
|||||||
void nospace __P((void));
|
void nospace __P((void));
|
||||||
int okname __P((char *));
|
int okname __P((char *));
|
||||||
void run_err __P((const char *, ...));
|
void run_err __P((const char *, ...));
|
||||||
int susystem __P((char *, int));
|
int susystem __P((char *));
|
||||||
void verifydir __P((char *));
|
void verifydir __P((char *));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: util.c,v 1.2 1995/03/21 08:19:08 cgd Exp $ */
|
/* $NetBSD: util.c,v 1.3 1997/05/28 00:32:19 mrg Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
@ -37,7 +37,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)util.c 8.2 (Berkeley) 4/2/94";
|
static char sccsid[] = "@(#)util.c 8.2 (Berkeley) 4/2/94";
|
||||||
#else
|
#else
|
||||||
static char rcsid[] = "$NetBSD: util.c,v 1.2 1995/03/21 08:19:08 cgd Exp $";
|
static char rcsid[] = "$NetBSD: util.c,v 1.3 1997/05/28 00:32:19 mrg Exp $";
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -110,8 +110,7 @@ bad: warnx("%s: invalid user name", cp0);
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
susystem(s, userid)
|
susystem(s)
|
||||||
int userid;
|
|
||||||
char *s;
|
char *s;
|
||||||
{
|
{
|
||||||
sig_t istat, qstat;
|
sig_t istat, qstat;
|
||||||
@ -124,7 +123,6 @@ susystem(s, userid)
|
|||||||
return (127);
|
return (127);
|
||||||
|
|
||||||
case 0:
|
case 0:
|
||||||
(void)setuid(userid);
|
|
||||||
execl(_PATH_BSHELL, "sh", "-c", s, NULL);
|
execl(_PATH_BSHELL, "sh", "-c", s, NULL);
|
||||||
_exit(127);
|
_exit(127);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user