X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=oldrecover-src%2Fset_commands.c;h=7a52122a29746e4368a3f3075736cab8468fbc37;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=d3712df9cb486632818912c9608d4f2eefcc5ec6;hpb=96f35b20267e8b1a1c846d476f27fcd330e0b018;p=debian%2Famanda diff --git a/oldrecover-src/set_commands.c b/oldrecover-src/set_commands.c index d3712df..7a52122 100644 --- a/oldrecover-src/set_commands.c +++ b/oldrecover-src/set_commands.c @@ -30,6 +30,7 @@ */ #include "amanda.h" +#include "match.h" #include "util.h" #include "amrecover.h" @@ -309,7 +310,7 @@ cd_glob( if (strcmp(disk_path, "/") == 0) path_on_disk = stralloc2("/", regex_path); else { - char *clean_disk_path = clean_regex(disk_path); + char *clean_disk_path = clean_regex(disk_path, 0); path_on_disk = vstralloc(clean_disk_path, "/", regex_path, NULL); amfree(clean_disk_path); } @@ -347,7 +348,7 @@ cd_regex( if (strcmp(disk_path, "/") == 0) path_on_disk = stralloc2("/", regex); else { - char *clean_disk_path = clean_regex(disk_path); + char *clean_disk_path = clean_regex(disk_path, 0); path_on_disk = vstralloc(clean_disk_path, "/", regex, NULL); amfree(clean_disk_path); }