Changing if (!write_batch) in front of send_exclude_list() to
authorWayne Davison <wayned@samba.org>
Sat, 15 May 2004 18:51:21 +0000 (18:51 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 15 May 2004 18:51:21 +0000 (18:51 +0000)
if (!read_batch) -- fixes hang.

main.c

diff --git a/main.c b/main.c
index 5ad1bf2..3586ce7 100644 (file)
--- a/main.c
+++ b/main.c
@@ -633,11 +633,10 @@ int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[])
                exit_cleanup(status);
        }
 
-       if (argc == 0) {
+       if (argc == 0)
                list_only = 1;
-       }
 
-       if (!write_batch)
+       if (!read_batch)
                send_exclude_list(f_out);
 
        if (filesfrom_fd >= 0) {