diff options
Diffstat (limited to 'src/paq.cc')
-rw-r--r-- | src/paq.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -116,7 +116,7 @@ void process_directory(const String & dirname) throw (GeneralException) { fname = dirname + "/" + namelist[i]->d_name; stat(fname.to_charp(), &fstats); if (S_ISDIR(fstats.st_mode)) { - if (!Regex("^\.{1,2}$").Match(namelist[i]->d_name)) { + if (!Regex("^\\.{1,2}$").Match(namelist[i]->d_name)) { t = strlen(namelist[i]->d_name); Archive->write(&t, 1); Archive->write(namelist[i]->d_name, t); @@ -130,7 +130,7 @@ void process_directory(const String & dirname) throw (GeneralException) { process_directory(dirname + "/" + namelist[i]->d_name); } } else { - if (!Regex("\.gz$").Match(namelist[i]->d_name)) { + if (!Regex("\\.gz$").Match(namelist[i]->d_name)) { t = strlen(namelist[i]->d_name); Archive->write(&t, 1); Archive->write(namelist[i]->d_name, t); |