34 lines
885 B
Diff
34 lines
885 B
Diff
From de1d36e02d149dc1ae76504d4db1a640fd39d0dc Mon Sep 17 00:00:00 2001
|
|
From: Marco van Wieringen <mvw@planets.elm.net>
|
|
Date: Thu, 13 Sep 2012 07:43:32 +0200
|
|
Subject: [PATCH] Fix bug #1932 director crash.
|
|
|
|
---
|
|
bacula/src/lib/bsys.c | 3 +--
|
|
1 files changed, 1 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/bacula/src/lib/bsys.c b/bacula/src/lib/bsys.c
|
|
index 003585a..f9bd1d2 100644
|
|
--- a/bacula/src/lib/bsys.c
|
|
+++ b/bacula/src/lib/bsys.c
|
|
@@ -53,7 +53,7 @@ static pthread_cond_t timer = PTHREAD_COND_INITIALIZER;
|
|
int safer_unlink(const char *pathname, const char *regx)
|
|
{
|
|
int rc;
|
|
- regex_t preg1, pexc1;
|
|
+ regex_t preg1;
|
|
char prbuf[500];
|
|
const int nmatch = 30;
|
|
regmatch_t pmatch[nmatch];
|
|
@@ -83,7 +83,6 @@ int safer_unlink(const char *pathname, const char *regx)
|
|
rtn = EROFS;
|
|
}
|
|
regfree(&preg1);
|
|
- regfree(&pexc1);
|
|
return rtn;
|
|
}
|
|
|
|
--
|
|
1.7.7
|
|
|