search for: add_exclude_file

Displaying 9 results from an estimated 9 matches for "add_exclude_file".

2002 Nov 11
0
Regular Expression support
...es starting with semicolon or pound. It probably wouldn't cause any harm to not skip them but there's no need to save them. */ - add_exclude_list(line,&list,include); + add_exclude_list(line,&list,include,regexp); } } fclose(f); return list; } - -void add_exclude_file(const char *fname, int fatal, int include) +void add_exclude_file(const char *fname, int fatal, int include, int regexp) { if (!fname || !*fname) return; - exclude_list = make_exclude_list(fname,exclude_list,fatal,include); + exclude_list = make_exclude_list(fname,exclude_list,fatal,include,re...
2004 Mar 24
1
incorrect exclude list with -C
I just received this bug report on Debian's rsync package. I've verified it. The entry from the manpage: -C [...] Finally, any file is ignored if it is in the same directory as a .cvsignore file and matches one of the patterns listed therein. Here the patterns of a .cvsignore file is apparently used to exclude file outside the directory where the .cvsignore file is found. Any
2004 Apr 22
1
rsync problems from flist.c change
...nt change is in flist.c: --- rsync-2.6.0.orig/flist.c +++ rsync-2.6.0/flist.c @@ -871,7 +871,7 @@ if (cvs_exclude) { if (strlen(fname) + strlen(".cvsignore") <= MAXPATHLEN - 1) { strcpy(p, ".cvsignore"); - add_exclude_file(&exclude_list,fname,MISSING_OK,ADD_EXCL UDE); + add_exclude_file(&local_exclude_list,fname,MISSING_OK,AD D_EXCLUDE); // PS XXX } else { io_error |= IOERR_GENERAL; rprintf(FINFO, And in fact, reverting thi...
2004 Feb 08
2
strange behaviour with -C
Hi! This problem gave me quite a headache tonight... I more or less have this source directory: hop@krautesel:/var/tmp$ ls -laR from/ from/: total 12 drwxrwxr-x 3 hop hop 4096 Feb 8 03:34 . drwxrwxrwt 6 root root 4096 Feb 8 03:34 .. drwxrwxr-x 2 hop hop 4096 Feb 8 03:18 CVS -rw-rw-r-- 1 hop hop 0 Feb 8
2004 Apr 09
3
include/exclude bug in rsync 2.6.0/2.6.1pre1
...de_list = copy_exclude_list(recur_local_exclude_list); if (cvs_exclude) { if (strlcpy(p, ".cvsignore", MAXPATHLEN - offset) @@ -976,6 +1016,18 @@ } } + if (rsync_exclude) { + if (strlen(fname) + strlen(rsync_exclude) <= MAXPATHLEN - 1) { + strcpy(p, rsync_exclude); + add_exclude_file(&recur_local_exclude_list,fname,MISSING_OK,ADD_EXCLUDE); + } else { + io_error = 1; + rprintf(FINFO, + "cannot rsync-exclude in long-named directory %s\n", + fname); + } + } + for (errno = 0, di = readdir(d); di; errno = 0, di = readdir(d)) { char *dname = d_name(di);...
2001 Sep 30
0
Exclude sets generated with -C
...for (i=0; cvs_ignore_list[i]; i++) - add_exclude(cvs_ignore_list[i], 0); + add_exclude_list(cvs_ignore_list[i], &global_cvs_exclude_list, 0); if ((p=getenv("HOME")) && strlen(p) < (MAXPATHLEN-12)) { slprintf(fname,sizeof(fname), "%s/.cvsignore",p); - add_exclude_file(fname,0,0); + global_cvs_exclude_list = + make_exclude_list(fname, global_cvs_exclude_list, 0, 0); } - add_exclude_line(getenv("CVSIGNORE")); + add_exclude_line_to_list(getenv("CVSIGNORE"), &global_cvs_exclude_list); } Binary files /home/sits/orig/rsync-2.4.6/exclude...
2004 May 27
0
compiling on HP-UX
...ine 61: warning 563: Argument #1 is not the correct type. Warnings from gcc: exclude.c: In function `get_exclude_tok': exclude.c:252: warning: signed and unsigned type in conditional expression exclude.c:269: warning: signed and unsigned type in conditional expression exclude.c: In function `add_exclude_file': exclude.c:350: warning: signed and unsigned type in conditional expression util.c: In function `strlower': util.c:578: warning: signed and unsigned type in conditional expression In file included from options.c:22: popt/popt.h:377: warning: type qualifiers ignored on function return type...
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
2004 Mar 10
4
HFS+ resource forks: WIP patch included
...{"bwlimit", 0, POPT_ARG_INT, &bwlimit, 0, 0, 0 }, {"address", 0, POPT_ARG_STRING, &bind_address, 0, 0, 0 }, {"backup-dir", 0, POPT_ARG_STRING, &backup_dir, 0, 0, 0 }, @@ -516,6 +520,16 @@ case OPT_INCLUDE_FROM: add_exclude_file(&exclude_list, poptGetOptArg(pc), MISSING_FATAL, ADD_INCLUDE); + break; + + case OPT_HFS_MODE: + if ( (strcmp(hfs_mode,"none") != 0) && + (strcmp(hfs_mode,"darsplit") != 0) ) { + snprintf(err_buf, sizeof err_buf, + "unsupported hfs-mode: \&q...