diff options
author | Wayne Davison <wayned@samba.org> | 2006-08-12 16:22:03 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-08-12 16:22:03 +0000 |
commit | 29930a9fd263792559958b35db93914d69cffeb1 (patch) | |
tree | 5dad57c8924c74670afaffbfab715e409c1bbec2 | |
parent | c98ad3df964103e23f7f502b8e610a0155f19eb6 (diff) | |
download | android_external_rsync-29930a9fd263792559958b35db93914d69cffeb1.tar.gz android_external_rsync-29930a9fd263792559958b35db93914d69cffeb1.tar.bz2 android_external_rsync-29930a9fd263792559958b35db93914d69cffeb1.zip |
Fixed an exclude bug with --relative excluding "/".
-rw-r--r-- | exclude.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -500,6 +500,8 @@ static int rule_matches(char *name, struct filter_struct *ex, int name_is_dir) char *p, *pattern = ex->pattern; const char *strings[16]; /* more than enough */ + if (*name == '/') + name++; if (!*name) return 0; @@ -531,8 +533,6 @@ static int rule_matches(char *name, struct filter_struct *ex, int name_is_dir) if (*pattern == '/') { anchored_match = 1; pattern++; - if (strings[0][0] == '/') - strings[0]++; } if (!anchored_match && ex->u.slash_cnt |