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,
return(NULL);
/* Skip over any initial spaces */
- while(isspace((int) *s))
+ while (isspace(* (unsigned char *) s))
s++;
/* Are we at the end of the string? */
s+=2;
/* Skip to the next space or the end of the string */
- while(!isspace((int) *s) && *s != '\0')
+ while (!isspace(* (unsigned char *) s) && *s != '\0')
s++;
} else {
t=NULL;
static char *cvs_ignore_list[] = {
- "RCS","SCCS","CVS","CVS.adm","RCSLOG","cvslog.*",
- "tags","TAGS",".make.state",".nse_depinfo",
- "*~", "#*", ".#*", ",*", "*.old", "*.bak", "*.BAK", "*.orig",
+ "RCS/", "SCCS/", "CVS/", ".svn/", "CVS.adm", "RCSLOG", "cvslog.*",
+ "tags", "TAGS", ".make.state", ".nse_depinfo",
+ "*~", "#*", ".#*", ", *", "*.old", "*.bak", "*.BAK", "*.orig",
"*.rej", ".del-*", "*.a", "*.o", "*.obj", "*.so", "*.Z", "*.elc", "*.ln",
- "core",NULL};
-
+ "core", NULL};
void add_cvs_excludes(void)