summaryrefslogtreecommitdiff
path: root/src/paq.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/paq.cc')
-rw-r--r--src/paq.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/paq.cc b/src/paq.cc
index 96f6f39..913e925 100644
--- a/src/paq.cc
+++ b/src/paq.cc
@@ -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);