summaryrefslogtreecommitdiffstats
path: root/sbin/ffsinfo
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2007-02-14 23:22:33 +0000
committerbrian <brian@FreeBSD.org>2007-02-14 23:22:33 +0000
commit494959a002ebd44883ca0f80a6ab843faa66893b (patch)
treea5f4e691fa2cfcb120f9a5fee8c09e341aee5c08 /sbin/ffsinfo
parente698fb63e262ce576a8ad7d0a310a9b2c4e506ad (diff)
downloadFreeBSD-src-494959a002ebd44883ca0f80a6ab843faa66893b.zip
FreeBSD-src-494959a002ebd44883ca0f80a6ab843faa66893b.tar.gz
Default output to stdout as the man page suggests.
Diffstat (limited to 'sbin/ffsinfo')
-rw-r--r--sbin/ffsinfo/ffsinfo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/ffsinfo/ffsinfo.c b/sbin/ffsinfo/ffsinfo.c
index 50bb70a..0ef5e9e 100644
--- a/sbin/ffsinfo/ffsinfo.c
+++ b/sbin/ffsinfo/ffsinfo.c
@@ -141,7 +141,7 @@ main(int argc, char **argv)
cfg_lv = 0xff;
cfg_in = -2;
cfg_cg = -2;
- out_file = NULL;
+ out_file = "-";
while ((ch = getopt(argc, argv, "g:i:l:o:")) != -1) {
switch (ch) {
@@ -184,8 +184,6 @@ main(int argc, char **argv)
if (argc != 1)
usage();
device = *argv;
- if (out_file == NULL)
- errx(1, "out_file not specified");
/*
* Now we try to guess the (raw)device name.
OpenPOWER on IntegriCloud