summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-07-03 17:09:55 +0000
committerMiles Bader <miles@gnu.org>1997-07-03 17:09:55 +0000
commit9c1cdbc0c3b55059a07fe015f60e076d315a45a1 (patch)
tree87ab2e62ff6ddc693cc2935705c86111d1d0c84f
parent9cb9fa49f083df89db933b85695e902be6d26cf1 (diff)
(main):
Flush stdout after printing prefix/separator.
-rw-r--r--utils/ftpdir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/ftpdir.c b/utils/ftpdir.c
index b7bcce2b..4423f421 100644
--- a/utils/ftpdir.c
+++ b/utils/ftpdir.c
@@ -271,6 +271,8 @@ main (int argc, char **argv)
fputs (sep, stdout);
if (use_pfx)
printf (pfx, h->name, dir);
+ if ((use_pfx && *pfx) || (state->arg_num > 0 && *sep))
+ fflush (stdout);
if (interpret)
errs |= ftpdir2 (dir, h);
else