summaryrefslogtreecommitdiff
path: root/sbin/dump
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2003-05-01 21:18:36 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2003-05-01 21:18:36 +0000
commit44b81f0f89a62f65cb10abedd5d238edaec97959 (patch)
treefd021b9e5135352d1fa10b165f08720d4ab5f36a /sbin/dump
parentf618f98fff023f02b955222dfd86a28d7a9f7792 (diff)
Notes
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/Makefile1
-rw-r--r--sbin/dump/dump.82
-rw-r--r--sbin/dump/main.c8
3 files changed, 4 insertions, 7 deletions
diff --git a/sbin/dump/Makefile b/sbin/dump/Makefile
index d758d2ecdba6..2dd6fdae0105 100644
--- a/sbin/dump/Makefile
+++ b/sbin/dump/Makefile
@@ -16,7 +16,6 @@
PROG= dump
LINKS= ${BINDIR}/dump ${BINDIR}/rdump
CFLAGS+=-DRDUMP
-CFLAGS+=-I${.CURDIR}/../../libexec/rlogind
WARNS= 0
SRCS= itime.c main.c optr.c dumprmt.c tape.c traverse.c unctime.c cache.c
MAN= dump.8
diff --git a/sbin/dump/dump.8 b/sbin/dump/dump.8
index 9954bf34ce40..fa1174ed9a36 100644
--- a/sbin/dump/dump.8
+++ b/sbin/dump/dump.8
@@ -42,7 +42,7 @@
.Nd file system backup
.Sh SYNOPSIS
.Nm
-.Op Fl 0123456789ackLnSu
+.Op Fl 0123456789acLnSu
.Op Fl B Ar records
.Op Fl b Ar blocksize
.Op Fl C Ar cachesize
diff --git a/sbin/dump/main.c b/sbin/dump/main.c
index 5eb21ab209d2..6866eb7bf8c9 100644
--- a/sbin/dump/main.c
+++ b/sbin/dump/main.c
@@ -126,9 +126,8 @@ main(int argc, char *argv[])
usage();
obsolete(&argc, &argv);
-#define optstring "0123456789aB:b:C:cD:d:f:h:LnSs:T:uWw"
- while ((ch = getopt(argc, argv, optstring)) != -1)
-#undef optstring
+ while ((ch = getopt(argc, argv,
+ "0123456789aB:b:C:cD:d:f:h:LnSs:T:uWw")) != -1)
switch (ch) {
/* dump level */
case '0': case '1': case '2': case '3': case '4':
@@ -561,8 +560,7 @@ static void
usage(void)
{
fprintf(stderr,
- "usage: dump [-0123456789ac"
- "LnSu] [-B records] [-b blocksize] [-C cachesize]\n"
+ "usage: dump [-0123456789acLnSu] [-B records] [-b blocksize] [-C cachesize]\n"
" [-D dumpdates] [-d density] [-f file] [-h level] [-s feet]\n"
" [-T date] filesystem\n"
" dump -W | -w\n");