STRUCT_STAT st;
extern int orig_umask;
+ if (verbose > 2)
+ rprintf(FINFO,"get_local_name count=%d %s\n",
+ flist->count, name);
+
if (do_stat(name,&st) == 0) {
if (S_ISDIR(st.st_mode)) {
if (!push_dir(name, 0)) {
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)) {
set_nonblocking(f_out);
+ io_start_buffering(f_out);
+
generate_files(f_out,flist,local_name,recv_pipe[0]);
io_flush();
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);