Move implied_dot_dir=1, just to be safe.
authorWayne Davison <wayned@samba.org>
Sat, 27 Aug 2011 21:58:04 +0000 (14:58 -0700)
committerWayne Davison <wayned@samba.org>
Sat, 27 Aug 2011 21:58:04 +0000 (14:58 -0700)
flist.c

diff --git a/flist.c b/flist.c
index cbd837cb9c5623171268ed5df9f51d9173c0ca21..25d5c8c6b8d35f6fb480d7101854a8a9c3a2061a 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -2152,8 +2152,8 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
                }
 
                if (implied_dot_dir < 0) {
-                       send_file_name(f, flist, ".", NULL, (flags | FLAG_IMPLIED_DIR) & ~FLAG_CONTENT_DIR, ALL_FILTERS);
                        implied_dot_dir = 1;
+                       send_file_name(f, flist, ".", NULL, (flags | FLAG_IMPLIED_DIR) & ~FLAG_CONTENT_DIR, ALL_FILTERS);
                }
 
                if (fn != fbuf)