search for: check_exclude_fil

Displaying 6 results from an estimated 6 matches for "check_exclude_fil".

Did you mean: check_exclude_file
2002 Dec 05
1
Patch to ignore exluded files.
..._errno = errno; - if ((errno == ENOENT) && copy_links && !noexcludes) { - /* symlink pointing nowhere, see if excluded */ + if ((errno == ENOENT) && !noexcludes) { + /* File or directory not found, see if excluded */ memset((char *) &st, 0, sizeof(st)); if (check_exclude_file(f, fname, &st)) { /* file is excluded anyway, ignore silently */ > Dear friends! > > I really appriciate the great job you did on rsync package and hope for its > further improvement and development. It works great in our pretty complex > environment and helps us a lot...
2002 Mar 28
1
rsync raising an IO error for an excluded file
...!= 0) { int save_errno = errno; if ((errno == ENOENT) && copy_links && !noexcludes) { /* symlink pointing nowhere, see if excluded */ memset((char *) &st, 0, sizeof(st)); if (check_exclude_file(f, fname, &st)) { /* file is excluded anyway, ignore silently */ return NULL; } } io_error = 1; rprintf(FERROR, "readlink %s: %s\n",...
2004 Jan 19
1
File that "vanish"es between readdir and stat is not IO error
Using rsync 2.6.0 with --verbose and doing a pull. >?receiving file list ... readlink "{FILENAME}" failed: >?No such file or directory >?done >?IO error encountered - skipping file deletion The file was a temporary file that was being deleted just as the rsync was run. So while the file list was being built, it was there when the directory was read but had vanished by the
2002 Jul 24
0
couple of minor fixes to rsync 2.5.5
...if ((errno == ENOENT) && copy_links && !noexcludes) { + if ((errno == ENOENT) && !noexcludes) { /* symlink pointing nowhere, see if excluded */ memset((char *) &st, 0, sizeof(st)); if (check_exclude_file(f, fname, &st)) { The second problem appears when we need that target files always have correct permissions - we do some testing on them and we receive errors, when file already copied and renamed from tempfile, but permission are not yet set. So I fixed it with following diff: --- rsync.c.o...
2004 Feb 02
1
[PATCH] --one-file-system and automounter
...pe. */ #define MALLOC(ap, i) (ap ? (void*) string_area_malloc(ap, i) : malloc(i)) @@ -710,11 +684,6 @@ struct file_struct *make_file(char *fnam return NULL; } - if (one_file_system && st.st_dev != filesystem_dev) { - if (skip_filesystem(fname, &st)) - return NULL; - } - if (check_exclude_file(fname, S_ISDIR(st.st_mode) != 0, exclude_level)) return NULL; @@ -825,6 +794,8 @@ void send_file_name(int f, struct file_l } if (S_ISDIR(file->mode) && recursive) { + if (one_file_system && file->dev != filesystem_dev) + return; struct exclude_struct **last_e...
2004 Apr 09
3
include/exclude bug in rsync 2.6.0/2.6.1pre1
...and also fixes a bug that was introduced in 2.6.0 exclude/include option that prevents included patterns in one list from overriding previously excluded patterns from another. This bug becomes apparent on noting that the 0 return code from check_exclude in the include case is now simply ignored in check_exclude_file (rather than preventing lists with lower precedence to be examined, as was the case in earlier versions): ... if (exclude_list && check_exclude(exclude_list, fname, is_dir)) return 1; if (local_exclude_list && check_exclude(local_exclude_list, fname, is_dir)) return 1; ......