search for: exclude_struct

Displaying 18 results from an estimated 18 matches for "exclude_struct".

2003 Feb 16
1
rsync-exclude.patch.
...*.a and *.so libraries). diff -ru rsync-2.5.6/exclude.c rsync-2.5.6J/exclude.c --- rsync-2.5.6/exclude.c Sun Jan 26 13:10:23 2003 +++ rsync-2.5.6J/exclude.c Wed Jan 29 17:16:39 2003 @@ -127,6 +127,7 @@ static void report_exclude_result(char const *name, struct exclude_struct const *ent, + char const *type, STRUCT_STAT const *st) { /* If a trailing slash is present to match only directories, @@ -134,10 +135,10 @@ * case we add it back in here. */ if (verbose >= 2) - rprintf(...
2004 Apr 09
3
include/exclude bug in rsync 2.6.0/2.6.1pre1
....1pre-1/exclude.c rsync-2.6.1pre-1J/exclude.c --- rsync-2.6.1pre-1/exclude.c 2004-02-23 20:23:53.000000000 +0100 +++ rsync-2.6.1pre-1J/exclude.c 2004-04-08 10:41:54.000000000 +0200 @@ -197,35 +197,39 @@ static void report_exclude_result(char const *name, struct exclude_struct const *ent, - int name_is_dir) + int name_is_dir, const char *type) { /* If a trailing slash is present to match only directories, * then it is stripped out by make_exclude. So as a special * case we add it back in here. */...
2003 Jan 14
3
.rsync-/.rsync+ patch and --link-dest example
...rsync-2.5.6cvs/flist.c Tue Dec 24 00:42:04 2002 +++ rsync-2.5.6cvsJ/flist.c Sat Jan 11 03:47:14 2003 @@ -39,6 +39,7 @@ extern int always_checksum; extern int cvs_exclude; +extern int rsync_exclude; extern int recurse; @@ -64,6 +65,7 @@ static char topsrcname[MAXPATHLEN]; static struct exclude_struct **local_exclude_list; +static struct exclude_struct **recur_local_exclude_list; static struct file_struct null_file; @@ -260,6 +262,9 @@ if (check_exclude(fname, local_exclude_list, st)) { return 1; } + if (check_exclude(fname, recur_local_exclude_list, st)) { + return 1; + } return...
2002 Nov 11
0
Regular Expression support
...second format was to support some search options: /.*\.txt$/i This allows for case insensitive (//i) matching and extended (//e) matching. The implementation is optimized so that it does not compile the regular expression patterns more than once, for this reasons, a regex_t* pointer was added to exclude_struct. The man pages has been updated with the new format and a few examples. -- Paul N. Faure BEng 613.266.3286 Carleton University Systems Eng paul-at-faure-dot-ca Chief Technical Officer, CertainKey Inc. paul-at-certainkey-dot-com -------------- next part -------------- O...
2001 Sep 30
0
Exclude sets generated with -C
...tool! -- Cheers, David diff -r -u --exclude=.o --exclude=rsync --exclude=configure --exclude=config.log /home/sits/orig/rsync-2.4.6/exclude.c ./exclude.c --- /home/sits/orig/rsync-2.4.6/exclude.c Wed Sep 6 13:46:43 2000 +++ ./exclude.c Sat Sep 29 21:45:53 2001 @@ -27,6 +27,10 @@ static struct exclude_struct **exclude_list; +/* Global CVS exclude list, set from cvs_ignore_list, ~/.cvsignore + and getenv("CVSIGNORE"). */ +static struct exclude_struct **global_cvs_exclude_list; + /* build an exclude structure given a exclude pattern */ static struct exclude_struct *make_exclude(char *patt...
2004 Jan 27
1
Differentiating debug messages from both sides
...level. Here's a patch. Let me know what you think. ..wayne.. -------------- next part -------------- --- exclude.c 20 Jan 2004 04:53:59 -0000 1.58 +++ exclude.c 27 Jan 2004 07:36:35 -0000 @@ -27,6 +27,7 @@ #include "rsync.h" extern int verbose; +extern char *who_am_i; struct exclude_struct **exclude_list; struct exclude_struct **local_exclude_list; @@ -102,7 +103,7 @@ void free_exclude_list(struct exclude_st struct exclude_struct **list = *listp; if (verbose > 2) - rprintf(FINFO,"clearing exclude list\n"); + rprintf(FINFO, "[%c] clearing exclude list\n&quot...
2002 Nov 04
4
making --exclude-from=- read from stdin
--- exclude.c.org 2002-11-04 04:17:05.000000000 +0100 +++ exclude.c 2002-11-04 04:21:13.000000000 +0100 @@ -219,8 +219,15 @@ int fatal, int include) { struct exclude_struct **list=list1; - FILE *f = fopen(fname,"r"); + FILE *f; char line[MAXPATHLEN]; + + if( fname[0]=='-' && fname[1]=='\0'){ + f= stdin; + } + else { + f= fopen(fname,"r"); + } if...
2002 Aug 02
1
[patch] exclude-from stdin
...============================================================= RCS file: /cvsroot/rsync/exclude.c,v retrieving revision 1.44 diff -u -r1.44 exclude.c --- exclude.c 11 Apr 2002 02:25:53 -0000 1.44 +++ exclude.c 3 Aug 2002 00:09:54 -0000 @@ -220,8 +220,14 @@ int fatal, int include) { struct exclude_struct **list=list1; - FILE *f = fopen(fname,"r"); + FILE *f; char line[MAXPATHLEN]; + + if (strcmp(fname, "-")) { + f = fopen(fname,"r"); + } else { + f = fdopen(0, "r"); + } if (!f) { if (fatal) { rsyserr(FERROR, errno, Index: rsync.yo ===============...
2002 Apr 18
5
mixed case file systems.
I am having trouble with rsync when I am trying to synchronize a Windows NT volume mounted with smb_fs (FreeBSD) and a unix volume which is also exported with Samba. There are instances where the DOS short name on the NT volume ends up as upper case and then doesn't match filenames which are used in the unix volumes which have been exported by Samba. I don't know if this is a Samba
2005 Jan 13
4
[Bug 2240] Add last-match/short-circuit processing of include/exclude
https://bugzilla.samba.org/show_bug.cgi?id=2240 ------- Additional Comments From rse@engelschall.com 2005-01-13 07:48 ------- Created an attachment (id=887) --> (https://bugzilla.samba.org/attachment.cgi?id=887&action=view) rsync.patch.lastmatch -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the
2004 Feb 02
1
[PATCH] --one-file-system and automounter
...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_exclude_list = local_exclude_list; send_directory(f, flist, f_name(file));
2003 Jun 24
2
[PATCH] Limit recursion depth
...curse_level; extern int one_file_system; extern int make_backups; @@ -797,11 +798,20 @@ send_file_entry(file, f, base_flags); } - - if (S_ISDIR(file->mode) && recursive) { + if (S_ISDIR(file->mode) && recursive ) { struct exclude_struct **last_exclude_list = local_exclude_list; - - send_directory(f, flist, f_name(file)); - - local_exclude_list = last_exclude_list; + + if ( recurse_level>1 || !recurse_level) { + if (recurse_level) +...
2002 May 07
0
Fixing exclude/exclude wildcard handling
...02:18:51 1.131 +++ rsync.h 2002/05/08 04:19:51 @@ -173,11 +173,7 @@ #endif #endif -#ifdef HAVE_FNMATCH -#include <fnmatch.h> -#else -#include "lib/fnmatch.h" -#endif +#include "lib/wildmat.h" #ifdef HAVE_GLOB_H #include <glob.h> @@ -392,8 +388,7 @@ struct exclude_struct { char *pattern; - int regular_exp; - int fnmatch_flags; + int wild_match; int include; int directory; int local; Index: token.c --- token.c 2002/04/08 08:35:30 1.22 +++ token.c 2002/05/08 04:19:53 @@ -51,7 +51,7 @@ strlower(fname); for (tok=strtok(dont," ");tok;tok=strtok(N...
2002 Mar 08
1
[PATCH][RFC] space saving incrementals
...============================================================= RCS file: /cvsroot/rsync/exclude.c,v retrieving revision 1.42 diff -u -r1.42 exclude.c --- exclude.c 18 Feb 2002 19:10:28 -0000 1.42 +++ exclude.c 7 Mar 2002 20:56:02 -0000 @@ -219,8 +219,14 @@ int fatal, int include) { struct exclude_struct **list=list1; - FILE *f = fopen(fname,"r"); + FILE *f; char line[MAXPATHLEN]; + + if (strcmp(fname, "-")) { + f = fopen(fname,"r"); + } else { + f = fdopen(0, "r"); + } if (!f) { if (fatal) { rsyserr(FERROR, errno, Index: generator.c ============...
2002 Mar 22
1
[PATCH] --link-dest option
...============================================================ RCS file: /cvsroot/rsync/exclude.c,v retrieving revision 1.42 diff -u -r1.42 exclude.c --- exclude.c 18 Feb 2002 19:10:28 -0000 1.42 +++ exclude.c 21 Mar 2002 23:31:25 -0000 @@ -219,8 +219,14 @@ int fatal, int include) { struct exclude_struct **list=list1; - FILE *f = fopen(fname,"r"); + FILE *f; char line[MAXPATHLEN]; + + if (strcmp(fname, "-")) { + f = fopen(fname,"r"); + } else { + f = fdopen(0, "r"); + } if (!f) { if (fatal) { rsyserr(FERROR, errno, Index: generator.c ============...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch? Thanks for the reminder. I've just committed Jos's rsync+ patch onto the "branch_mbp_rsyncplus_merge" branch. If it works OK and nobody screams I will move it across onto the main tree tomorrow or Wednesday. I see the patch doesn't add documentation about the new options to the man page, so we should fix that in the future.
2003 Jan 21
6
Please test rsync-2.5.6pre2
The second rsync-2.5.6 pre-release version is now available at: http://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz ftp://rsync.samba.org/pub/rsync/preview/rsync-2.5.6pre2.tar.gz rsync://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz There's also a corresponding '.sig' file that contains a gpg signature of the file; the public key is available on the
2002 Aug 05
5
[patch] read-devices
...ine int64 off64_t #elif (SIZEOF_LONG == 8) @@ -387,8 +388,10 @@ struct map_struct { char *p; int fd,p_size,p_len; OFF_T file_size, p_offset, p_fd_offset; + char* m_ptr; /* start of data from last map_ptr() call */ + int m_len; /* length of data from last map_ptr() call */ }; struct exclude_struct { char *pattern; diff -r -u4 rsync-2.5.5/sender.c rsync-patched/sender.c --- rsync-2.5.5/sender.c Sat Jan 26 02:07:33 2002 +++ rsync-patched/sender.c Mon Aug 5 10:05:15 2002 @@ -17,17 +17,18 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "rsync.h" +#in...