From: Kern Sibbald Date: Sun, 20 Dec 2015 14:06:03 +0000 (+0100) Subject: Fix bug #2153 with patch submitted by Ana Arruda X-Git-Tag: Release-7.4.0~95 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ecd10c5cbca18a6331f09dacaa0f3b4e13b8417;p=bacula%2Fbacula Fix bug #2153 with patch submitted by Ana Arruda --- 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); }