aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2007-02-14 23:22:33 +0000
committerBrian Somers <brian@FreeBSD.org>2007-02-14 23:22:33 +0000
commit8428fde517e73e5cf391867d86a00e07b20ddbd6 (patch)
treea5f4e691fa2cfcb120f9a5fee8c09e341aee5c08 /sbin
parent30e3c0fa2555882b1d18e5be45107521b043493d (diff)
downloadsrc-8428fde517e73e5cf391867d86a00e07b20ddbd6.tar.gz
src-8428fde517e73e5cf391867d86a00e07b20ddbd6.zip
Default output to stdout as the man page suggests.
Notes
Notes: svn path=/head/; revision=166726
Diffstat (limited to 'sbin')
-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 50bb70afdd03..0ef5e9e0e1d8 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.