]>
Commit | Line | Data |
---|---|---|
cada57ab JR |
1 | --- amanda/application-src/amstar.c 2010/09/24 21:46:25 3449 |
2 | +++ amanda/application-src/amstar.c 2010/11/10 11:22:58 3609 | |
3 | @@ -993,7 +993,7 @@ | |
4 | for (excl = argument->dle.exclude_file->first; excl != NULL; | |
5 | excl = excl->next) { | |
6 | char *ex; | |
7 | - if (strcmp(excl->name, "./") == 0) { | |
8 | + if (strncmp(excl->name, "./", 2) == 0) { | |
9 | ex = g_strdup_printf("pat=%s", excl->name+2); | |
10 | } else { | |
11 | ex = g_strdup_printf("pat=%s", excl->name); | |
12 | @@ -1013,7 +1013,7 @@ | |
13 | while ((aexc = agets(exclude)) != NULL) { | |
14 | if (aexc[0] != '\0') { | |
15 | char *ex; | |
16 | - if (strcmp(aexc, "./") == 0) { | |
17 | + if (strncmp(aexc, "./", 2) == 0) { | |
18 | ex = g_strdup_printf("pat=%s", aexc+2); | |
19 | } else { | |
20 | ex = g_strdup_printf("pat=%s", aexc); |