From 2ecd10c5cbca18a6331f09dacaa0f3b4e13b8417 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 20 Dec 2015 15:06:03 +0100 Subject: [PATCH] Fix bug #2153 with patch submitted by Ana Arruda --- bacula/src/stored/bextract.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bacula/src/stored/bextract.c b/bacula/src/stored/bextract.c index e84e55e781..b0b16df954 100644 --- a/bacula/src/stored/bextract.c +++ b/bacula/src/stored/bextract.c @@ -162,6 +162,9 @@ int main (int argc, char *argv[]) } while (fgets(line, sizeof(line), fd) != NULL) { strip_trailing_junk(line); + if (line[0] == 0) { /* skip blank lines */ + continue; + } Dmsg1(900, "add_exclude %s\n", line); add_fname_to_exclude_list(ff, line); } @@ -177,6 +180,9 @@ int main (int argc, char *argv[]) } while (fgets(line, sizeof(line), fd) != NULL) { strip_trailing_junk(line); + if (line[0] == 0) { /* skip blank lines */ + continue; + } Dmsg1(900, "add_include %s\n", line); add_fname_to_include_list(ff, 0, line); } -- 2.39.5