summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/growfs/debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/growfs/debug.c b/sbin/growfs/debug.c
index c86ca54..d178a26 100644
--- a/sbin/growfs/debug.c
+++ b/sbin/growfs/debug.c
@@ -71,7 +71,10 @@ void
dbg_open(const char *fn)
{
- dbg_log=fopen(fn, "a");
+ if (strcmp(fn, "-") == 0)
+ dbg_log=fopen("/dev/stdout", "a");
+ else
+ dbg_log=fopen(fn, "a");
return;
}
OpenPOWER on IntegriCloud