summaryrefslogtreecommitdiffstats
path: root/sbin/restore
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-05-01 21:18:36 +0000
committerru <ru@FreeBSD.org>2003-05-01 21:18:36 +0000
commitf3e97543a185ca6d4fc09a9a9bc2df394caad69c (patch)
treefd021b9e5135352d1fa10b165f08720d4ab5f36a /sbin/restore
parente5af44d25a9243848aa1eda8df6979cc06d1c7c3 (diff)
downloadFreeBSD-src-f3e97543a185ca6d4fc09a9a9bc2df394caad69c.zip
FreeBSD-src-f3e97543a185ca6d4fc09a9a9bc2df394caad69c.tar.gz
Removed all vestiges of KerberosIV.
Diffstat (limited to 'sbin/restore')
-rw-r--r--sbin/restore/Makefile1
-rw-r--r--sbin/restore/main.c13
-rw-r--r--sbin/restore/restore.811
3 files changed, 11 insertions, 14 deletions
diff --git a/sbin/restore/Makefile b/sbin/restore/Makefile
index 712bf64..5571947 100644
--- a/sbin/restore/Makefile
+++ b/sbin/restore/Makefile
@@ -6,7 +6,6 @@
PROG= restore
LINKS= ${BINDIR}/restore ${BINDIR}/rrestore
CFLAGS+=-DRRESTORE
-CFLAGS+=-I${.CURDIR}/../../libexec/rlogind
WARNS= 0
SRCS= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c \
dumprmt.c
diff --git a/sbin/restore/main.c b/sbin/restore/main.c
index 17abadb..4fe2be6 100644
--- a/sbin/restore/main.c
+++ b/sbin/restore/main.c
@@ -97,8 +97,7 @@ main(int argc, char *argv[])
if ((inputdev = getenv("TAPE")) == NULL)
inputdev = _PATH_DEFTAPE;
obsolete(&argc, &argv);
-#define optlist "b:df:himNRrs:tuvxy"
- while ((ch = getopt(argc, argv, optlist)) != -1)
+ while ((ch = getopt(argc, argv, "b:df:himNRrs:tuvxy")) != -1)
switch(ch) {
case 'b':
/* Change default tape blocksize. */
@@ -280,11 +279,11 @@ static void
usage()
{
(void)fprintf(stderr, "usage:\t%s\n\t%s\n\t%s\n\t%s\n\t%s\n",
- "restore -i [-cdhkmNuvy] [-b blocksize] [-f file] [-s fileno]",
- "restore -r [-cdkNuvy] [-b blocksize] [-f file] [-s fileno]",
- "restore -R [-cdkNuvy] [-b blocksize] [-f file] [-s fileno]",
- "restore -x [-cdhkmNuvy] [-b blocksize] [-f file] [-s fileno] [file ...]",
- "restore -t [-cdhkNuvy] [-b blocksize] [-f file] [-s fileno] [file ...]");
+ "restore -i [-cdhmNuvy] [-b blocksize] [-f file] [-s fileno]",
+ "restore -r [-cdNuvy] [-b blocksize] [-f file] [-s fileno]",
+ "restore -R [-cdNuvy] [-b blocksize] [-f file] [-s fileno]",
+ "restore -x [-cdhmNuvy] [-b blocksize] [-f file] [-s fileno] [file ...]",
+ "restore -t [-cdhNuvy] [-b blocksize] [-f file] [-s fileno] [file ...]");
done(1);
}
diff --git a/sbin/restore/restore.8 b/sbin/restore/restore.8
index d357785..6836536 100644
--- a/sbin/restore/restore.8
+++ b/sbin/restore/restore.8
@@ -42,32 +42,32 @@
.Sh SYNOPSIS
.Nm
.Fl i
-.Op Fl cdhkmNuvy
+.Op Fl cdhmNuvy
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
.Nm
.Fl R
-.Op Fl cdkNuvy
+.Op Fl cdNuvy
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
.Nm
.Fl r
-.Op Fl cdkNuvy
+.Op Fl cdNuvy
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
.Nm
.Fl t
-.Op Fl cdhkNuvy
+.Op Fl cdhNuvy
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
.Op Ar
.Nm
.Fl x
-.Op Fl cdhkmNuvy
+.Op Fl cdhmNuvy
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op Fl s Ar fileno
@@ -308,7 +308,6 @@ or
.Nm
reads from the named file on the remote host using
.Xr rmt 8 .
-.Pp
.It Fl h
Extract the actual directory,
rather than the files that it references.
OpenPOWER on IntegriCloud