Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
429f982
)
Changed add_exclude*() calls to use the revised arg syntax.
author
Wayne Davison
<wayned@samba.org>
Tue, 1 Jul 2003 21:45:23 +0000
(21:45 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 1 Jul 2003 21:45:23 +0000
(21:45 +0000)
options.c
patch
|
blob
|
blame
|
history
diff --git
a/options.c
b/options.c
index
abef1cb
..
7c39d76
100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-21,6
+21,8
@@
#include "rsync.h"
#include "popt.h"
#include "rsync.h"
#include "popt.h"
+extern struct exclude_struct **exclude_list;
+
int make_backups = 0;
/**
int make_backups = 0;
/**
@@
-508,19
+510,23
@@
int parse_arguments(int *argc, const char ***argv, int frommain)
break;
case OPT_EXCLUDE:
break;
case OPT_EXCLUDE:
- add_exclude(poptGetOptArg(pc), 0);
+ add_exclude(&exclude_list, poptGetOptArg(pc),
+ ADD_EXCLUDE);
break;
case OPT_INCLUDE:
break;
case OPT_INCLUDE:
- add_exclude(poptGetOptArg(pc), 1);
+ add_exclude(&exclude_list, poptGetOptArg(pc),
+ ADD_INCLUDE);
break;
case OPT_EXCLUDE_FROM:
break;
case OPT_EXCLUDE_FROM:
- add_exclude_file(poptGetOptArg(pc), 1, 0);
+ add_exclude_file(&exclude_list, poptGetOptArg(pc),
+ MISSING_FATAL, ADD_EXCLUDE);
break;
case OPT_INCLUDE_FROM:
break;
case OPT_INCLUDE_FROM:
- add_exclude_file(poptGetOptArg(pc), 1, 1);
+ add_exclude_file(&exclude_list, poptGetOptArg(pc),
+ MISSING_FATAL, ADD_INCLUDE);
break;
case 'h':
break;
case 'h':
@@
-909,5
+915,3
@@
char *find_colon(char *s)
return p;
}
return p;
}
-
-