-# $OpenBSD: Makefile,v 1.2 1996/06/23 14:32:13 deraadt Exp $
+# $OpenBSD: Makefile,v 1.3 1996/09/01 15:27:28 deraadt Exp $
# $NetBSD: Makefile,v 1.14 1995/03/18 14:59:39 cgd Exp $
PROG= restore
CFLAGS+=-DRRESTORE
SRCS= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c \
dumprmt.c
-BINOWN= root
-BINGRP= tty
-BINMODE=6555
MAN= restore.8
MLINKS+=restore.8 rrestore.8
.PATH: ${.CURDIR}/../dump
-/* $OpenBSD: main.c,v 1.3 1996/03/21 00:16:29 niklas Exp $ */
+/* $OpenBSD: main.c,v 1.4 1996/09/01 15:27:29 deraadt Exp $ */
/* $NetBSD: main.c,v 1.11 1996/03/15 22:39:39 scottr Exp $ */
/*
time_t dumptime;
time_t dumpdate;
FILE *terminal;
-uid_t uid; /* real uid */
-uid_t euid; /* effective uid */
static void obsolete __P((int *, char **[]));
static void usage __P((void));
char *symtbl = "./restoresymtable";
char *p, name[MAXPATHLEN];
- uid = getuid();
- euid = geteuid();
- (void) seteuid(uid);
-
if (argc < 2)
usage();
-/* $OpenBSD: tape.c,v 1.2 1996/03/21 00:16:32 niklas Exp $ */
+/* $OpenBSD: tape.c,v 1.3 1996/09/01 15:27:29 deraadt Exp $ */
/* $NetBSD: tape.c,v 1.20 1996/03/15 22:39:41 scottr Exp $ */
/*
int Bcvt; /* Swap Bytes (for CCI or sun) */
static int Qcvt; /* Swap quads (for sun) */
-extern uid_t uid; /* real uid */
-extern uid_t euid; /* effective uid */
-
#define FLUSHTAPEBUF() blkcnt = ntrec + 1
static void accthdr __P((struct s_spcl *));
}
pipein++;
}
- (void) setuid(uid); /* rmthost() is the only reason to be setuid */
(void) strcpy(magtape, source);
}