summaryrefslogtreecommitdiffstats
path: root/sbin/dump
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-10-12 20:22:31 +0000
committerru <ru@FreeBSD.org>2006-10-12 20:22:31 +0000
commit83b5d57c41e13ad9721c270269ccbf62008bd05a (patch)
tree2fc6b7745148fa4c20d2609dd46f97dcae98ac6a /sbin/dump
parentf2ac62bb145234a0cf1927a8187296ea69c7b681 (diff)
downloadFreeBSD-src-83b5d57c41e13ad9721c270269ccbf62008bd05a.zip
FreeBSD-src-83b5d57c41e13ad9721c270269ccbf62008bd05a.tar.gz
Make "dump /filesystem" (without options) work.
PR: docs/84408 MFC after: 3 days
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c
index a7ab509..827ffcc 100644
--- a/sbin/dump/main.c
+++ b/sbin/dump/main.c
@@ -691,9 +691,12 @@ obsolete(int *argcp, char **argvp[])
argv = *argvp;
argc = *argcp;
- /* Return if no arguments or first argument has leading dash. */
+ /*
+ * Return if no arguments or first argument has leading
+ * dash or slash.
+ */
ap = argv[1];
- if (argc == 1 || *ap == '-')
+ if (argc == 1 || *ap == '-' || *ap == '/')
return;
/* Allocate space for new arguments. */
OpenPOWER on IntegriCloud