search for: cur_flist

Displaying 11 results from an estimated 11 matches for "cur_flist".

2012 Jun 05
2
[Bug 8979] New: rsync daemon: High load while skipping hardlinks
https://bugzilla.samba.org/show_bug.cgi?id=8979 Summary: rsync daemon: High load while skipping hardlinks Product: rsync Version: 3.0.5 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: simon.klinkert at
2010 Jun 15
3
about rsyncing of block devices
...extern int preserve_perms; extern int preserve_executability; extern int preserve_times; +extern int copy_devices; extern int am_root; extern int am_server; extern int am_sender; @@ -328,7 +329,8 @@ int read_ndx_and_attrs(int f_in, int *if if (iflags & ITEM_TRANSFER) { int i = ndx - cur_flist->ndx_start; - if (i < 0 || !S_ISREG(cur_flist->files[i]->mode)) { + struct file_struct *file = cur_flist->files[i]; + if (i < 0 || !(S_ISREG(file->mode) || (copy_devices && IS_DEVICE(file->mode)))) { rprintf(FERROR, "received request to transfer non-...
2014 Dec 01
2
[Bug 10977] New: Rsync path spoofing attack vulnerability (rsync 3.1.1 tested)
...ver-side and says "received request to transfer non-regular file fakedir/pwned.test 7 [sender]", But as an attacker, the code of the server-side can be arbitrarily controlled,Shielding the following code. file:rsync.c line:405 /* if (iflags & ITEM_TRANSFER) { int i = ndx - cur_flist->ndx_start; if (i < 0 || !S_ISREG(cur_flist->files[i]->mode)) { rprintf(FERROR, "received request to transfer non-regular file: %d [%s]\n", ndx, who_am_i()); exit_cleanup(RERR_PROTOCOL); } } */ Vulner...
2014 Nov 14
6
[Bug 10936] New: Rsync path hijacking attack vulnerability
...he server-side and says ?received request to transfer non-regular file /root/pwned.test 7 [sender]?,But as an attacker, the code of the server-side can be arbitrarily controlled,Shielding the following code. file:rsync.c line:405? /* if (iflags & ITEM_TRANSFER) { int i = ndx - cur_flist->ndx_start; if (i < 0 || !S_ISREG(cur_flist->files[i]->mode)) { rprintf(FERROR, "received request to transfer non-regular file: %d [%s]\n", ndx, who_am_i()); exit_cleanup(RERR_PROTOCOL); } } */ Th...
2009 Jan 24
2
[patch] Replace illegal characters in filenames for FAT (switch)
...,8 @@ int recv_files(int f_in, char *local_name) const char *parent_dirname = ""; #endif int ndx, recv_ok; + int i; + static const char fat_invalid_chars[] = "*/:<>?\\|\""; if (DEBUG_GTE(RECV, 1)) rprintf(FINFO, "recv_files(%d) starting\n", cur_flist->used); @@ -487,6 +490,14 @@ int recv_files(int f_in, char *local_name) file = dir_flist->files[cur_flist->parent_ndx]; fname = local_name ? local_name : f_name(file, fbuf); + if (fat_filenames) { + for (i = 0; *fname != 0; i++, fname++) { + if (str...
2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...v_generator's skip_dir and dry_missing_dir tests. */ +static BOOL is_below(struct file_struct *file, struct file_struct *subtree) +{ + return F_DEPTH(file) > F_DEPTH(subtree) + && (!implied_dirs_are_missing || f_name_has_prefix(file, subtree)); +} + /* Acts on the indicated item in cur_flist whose name is fname. If a dir, * make sure it exists, and has the right permissions/timestamp info. For * all other non-regular files (symlinks, etc.) we create them here. For @@ -1227,9 +1235,12 @@ static int dflt_perms; static void recv_generator(char *fname, struct file_struct *file, int...
2023 Feb 17
1
[feature request?]: Show progress only for big files
Hi, I've read through the rsync manpage, this mailing list, asked Google and studied lots of posts on stackexchange.com (stackoverflow, superuser...), askubuntu.com and some others, concerning rsync's capabilities of showing progress information. But all I've found was what I already knew: --progress (or -P) shows a progress information for *every* file transmitted, --info=progress2
2008 Mar 20
2
DO NOT REPLY [Bug 5343] New: rsync does nothing after first time
https://bugzilla.samba.org/show_bug.cgi?id=5343 Summary: rsync does nothing after first time Product: rsync Version: 3.0.0 Platform: IA64 OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: rolmol@broadpark.no
2017 Feb 07
12
[Bug 12569] New: Missing directory errors not ignored
....768453242 +0100 @@ -1264,10 +1264,11 @@ && (*dn != '.' || dn[1]) /* Avoid an issue with --relative and the "." dir. */ && (prior_dir_file && strcmp(dn, f_name(prior_dir_file, NULL)) != 0) && flist_find_name(cur_flist, dn, 1) < 0) { + io_error |= IOERR_VANISHED; rprintf(FERROR, - "ABORTING due to invalid path from sender: %s/%s\n", + "WARNING: invalid path from sender: %s/%s\n", dn, file->basename...
2010 Jul 09
8
DO NOT REPLY [Bug 7565] New: --check-point=<TIME> +options.c.patch +generator.c.patch
...9-12-23 21:36:27.000000000 +0200 --- work/rsync-3.0.7/generator.c 2010-07-09 15:36:01.000000000 +0300 *************** *** 96,101 **** --- 96,102 ---- extern char *backup_dir; extern char *backup_suffix; extern int backup_suffix_len; + extern long check_point; extern struct file_list *cur_flist, *first_flist, *dir_flist; extern struct filter_list_struct daemon_filter_list; *************** *** 132,138 **** }; enum delret { ! DR_SUCCESS = 0, DR_FAILURE, DR_AT_LIMIT, DR_NOT_EMPTY }; /* Forward declarations. */ --- 133,139 ---- }; enum delret { ! DR_SUCCESS = 0, DR_F...
2011 Jul 17
11
[Bug 8308] New: rsync: exclude.c:532: change_local_filter_dir: Assertion `dir_depth < 4096/2+1' failed
https://bugzilla.samba.org/show_bug.cgi?id=8308 Summary: rsync: exclude.c:532: change_local_filter_dir: Assertion `dir_depth < 4096/2+1' failed Product: rsync Version: 3.0.8 Platform: x86 OS/Version: Linux Status: NEW Severity: major Priority: P5 Component: core