use error to detect lockfile open failures vs. max connections reached
[rsync/rsync.git] / main.c
diff --git a/main.c b/main.c
index dc2aac4..548e016 100644 (file)
--- a/main.c
+++ b/main.c
@@ -202,7 +202,8 @@ static char *get_local_name(struct file_list *flist,char *name)
                rprintf(FERROR,"mkdir %s : %s (1)\n",name,strerror(errno));
                exit_cleanup(1);
        } else {
-               rprintf(FINFO,"created directory %s\n",name);
+               if (verbose > 0)
+                       rprintf(FINFO,"created directory %s\n",name);
        }
 
        if (!push_dir(name, 0)) {
@@ -517,11 +518,6 @@ static int start_client(int argc, char *argv[])
        
        pid = do_cmd(shell_cmd,shell_machine,shell_user,shell_path,&f_in,&f_out);
        
-#if HAVE_SETLINEBUF
-       setlinebuf(stdout);
-       setlinebuf(stderr);
-#endif
-
        ret = client_run(f_in, f_out, pid, argc, argv);
 
        fflush(stdout);