diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-14 19:29:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-14 19:29:01 +0000 |
commit | 48cb58585150bfd0db7bd0868018c1bdd8c4877c (patch) | |
tree | cefc5855eaacce8c3f90846eab1a0b339b5d134d /sbin | |
parent | 4391163c044822c8c0dd47835517bf8d5bb98a70 (diff) |
setgid stuff goes away
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dump/main.c | 7 | ||||
-rw-r--r-- | sbin/dump/optr.c | 6 |
2 files changed, 3 insertions, 10 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c index 0272ac9c240..2bc57cd30ed 100644 --- a/sbin/dump/main.c +++ b/sbin/dump/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.9 1996/09/14 03:26:02 millert Exp $ */ +/* $OpenBSD: main.c,v 1.10 1996/09/14 19:28:58 deraadt Exp $ */ /* $NetBSD: main.c,v 1.8 1996/03/15 22:39:32 scottr Exp $ */ /*- @@ -89,7 +89,6 @@ int cartridge = 0; /* Assume non-cartridge tape */ long dev_bsize = 1; /* recalculated below */ long blocksperfile; /* output blocks per file */ char *host = NULL; /* remote host (if any) */ -gid_t gid, egid; /* real, effective gid */ static long numarg __P((char *, long, long)); static void obsolete __P((int *, char **[])); @@ -109,10 +108,6 @@ main(argc, argv) int i, anydirskipped, bflag = 0, Tflag = 0, honorlevel = 1; ino_t maxino; - gid = getgid(); - egid = getegid(); - setegid(gid); - spcl.c_date = 0; (void)time((time_t *)&spcl.c_date); diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c index 03f41e3f303..add3db6ea65 100644 --- a/sbin/dump/optr.c +++ b/sbin/dump/optr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: optr.c,v 1.10 1996/09/14 03:26:02 millert Exp $ */ +/* $OpenBSD: optr.c,v 1.11 1996/09/14 19:29:00 deraadt Exp $ */ /* $NetBSD: optr.c,v 1.4 1996/05/18 16:16:17 jtk Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94"; #else -static char rcsid[] = "$OpenBSD: optr.c,v 1.10 1996/09/14 03:26:02 millert Exp $"; +static char rcsid[] = "$OpenBSD: optr.c,v 1.11 1996/09/14 19:29:00 deraadt Exp $"; #endif #endif /* not lint */ @@ -72,8 +72,6 @@ void alarmcatch __P((/* int, int */)); int datesort __P((const void *, const void *)); static void sendmes __P((char *, char *)); -extern gid_t gid, egid; - /* * Query the operator; This previously-fascist piece of code * no longer requires an exact response. |