search for: filesfrom_fd

Displaying 8 results from an estimated 8 matches for "filesfrom_fd".

2004 Jan 30
1
rsync 2.6.0: possible sanitization bug?
Hiya. While merging the 2.6.0 changes into our modified version of rsync, I noticed the following bit of code in 2.6.0's options.c: extern int sanitize_paths; if (sanitize_paths) sanitize_path(strdup(files_from), NULL); filesfrom_fd = open(files_from, O_RDONLY|O_BINARY); Since sanitize_path modifies its first argument in place, the path that open() gets there hasn't been sanitized, which could be a security issue -- plus it leaks memory. Shouldn't that be something like this? extern int sanitize_paths;...
2004 Jan 27
1
Differentiating debug messages from both sides
...(%s,%s)\n", + *who_am_i, pattern, include ? "include" : "exclude"); } --- flist.c 27 Jan 2004 01:47:41 -0000 1.174 +++ flist.c 27 Jan 2004 07:36:30 -0000 @@ -46,6 +46,7 @@ extern int recurse; extern char curr_dir[MAXPATHLEN]; extern char *files_from; extern int filesfrom_fd; +extern char *who_am_i; extern int one_file_system; extern int make_backups; @@ -342,7 +343,8 @@ static void flist_expand(struct file_lis } if (verbose >= 2) { - rprintf(FINFO, "expand file_list to %.0f bytes, did%s move\n", + rprintf(FINFO, "[%c] expand file_list...
2004 Jul 12
2
[PATCH] Batch-mode rewrite
...d_batch is needed because of a + * protocol dependency on am_server state, see + * report(). We are quite fortunate that this + * workaround is not more complicated. */ + if (!read_batch) report(f_in); send_msg(MSG_DONE, "", 0); *************** *** 543,551 **** filesfrom_fd = -1; } - if (read_batch) - flist = batch_flist; - else flist = recv_file_list(f_in); if (!flist) { rprintf(FERROR,"server_recv: recv_file_list error\n"); --- 568,573 ---- *************** *** 585,590 **** --- 607,614 ---- if (am_sender) { keep_dirlinks = 0;...
2004 Jun 17
1
[PATCH] make write_batch local
...c,v retrieving revision 1.7 diff -c -b -d -r1.7 pipe.c *** a/pipe.c 15 May 2004 19:31:10 -0000 1.7 --- b/pipe.c 17 Jun 2004 04:01:57 -0000 *************** *** 26,31 **** --- 26,32 ---- extern int blocking_io; extern int orig_umask; extern int read_batch; + extern int write_batch; extern int filesfrom_fd; /** *************** *** 119,124 **** --- 120,132 ---- am_sender = read_batch ? 0 : !am_sender; am_server = 1; + /* There is write_batch code on both the receiver and + * sender sides. In local_child, both are local processes, + * so we must make sure that only one actually...
2006 Apr 26
2
--link-dest and file/dir transfer to remote rsync daemon
Hi NG, I want to do incremental backups to a remote server running rsyncd (because daemonless transfer via ssh often hangs!). In contrast to transfer via ssh (without remote rsyncd) this doesn't seem possible, or do I miss something? Imagine I want to incrementally backup `mydir' to the backup space `backup' on e remote server `alpha' running an rsync daemon. rsyncd on
2004 May 29
1
[patch] Filename conversion
...v.clean/pipe.c --- rsync-2.6.2/pipe.c 2004-01-28 00:35:15.000000000 +0200 +++ rsync-2.6.2-fnameconv.clean/pipe.c 2004-05-29 21:17:09.000000000 +0300 @@ -23,7 +23,6 @@ extern int am_sender; extern int am_server; -extern int blocking_io; extern int orig_umask; extern int read_batch; extern int filesfrom_fd; @@ -40,8 +39,10 @@ extern int filesfrom_fd; * If blocking_io is set then use blocking io on both fds. That can be * used to cope with badly broken rsh implementations like the one on * Solaris. + * + * If register_child is nonzero then the child is registered for autocleanup. **/ -pid_t pi...
2004 Feb 06
4
memory reduction
...ts.total_written; - flist = flist_new(); + flist = flist_new(f == -1 ? WITHOUT_HLINK : WITH_HLINK, + "send_file_list"); if (f != -1) { + flist->hlink_pool = pool_create(128 * 1024, + sizeof (struct idev), out_of_memory, POOL_INTERN); io_start_buffering_out(f); if (filesfrom_fd >= 0) { if (argv[0] && !push_dir(argv[0])) { @@ -1177,6 +1191,12 @@ struct file_list *send_file_list(int f, finish_filelist_progress(flist); } + if (flist->hlink_pool) + { + pool_destroy(flist->hlink_pool); + flist->hlink_pool = NULL; + } + clean_flist(flist, 0,...
2007 Sep 22
0
rsync build on IA64 using icc
...c(60): remark #1419: external declaration in primary source file extern int batch_fd; ^ main.c(61): remark #1419: external declaration in primary source file extern int batch_gen_fd; ^ main.c(62): remark #1419: external declaration in primary source file extern int filesfrom_fd; ^ main.c(63): remark #1419: external declaration in primary source file extern pid_t cleanup_child_pid; ^ main.c(64): remark #1419: external declaration in primary source file extern struct stats stats; ^ main.c(65): remark #1419: external d...