summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-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