Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch from J.W. Schultz to have --include-from and --exclude-from on
[rsync/rsync.git]
/
exclude.c
diff --git
a/exclude.c
b/exclude.c
index
dc469e1
..
23ee743
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-220,8
+220,14
@@
struct exclude_struct **make_exclude_list(const char *fname,
int fatal, int include)
{
struct exclude_struct **list=list1;
int fatal, int include)
{
struct exclude_struct **list=list1;
- FILE *f
= fopen(fname,"r")
;
+ FILE *f;
char line[MAXPATHLEN];
char line[MAXPATHLEN];
+
+ if (strcmp(fname, "-")) {
+ f = fopen(fname,"r");
+ } else {
+ f = fdopen(0, "r");
+ }
if (!f) {
if (fatal) {
rsyserr(FERROR, errno,
if (!f) {
if (fatal) {
rsyserr(FERROR, errno,