From: Kern Sibbald Date: Fri, 14 Dec 2007 10:42:37 +0000 (+0000) Subject: Skip leading | when lex input comes from a pipe as suggested X-Git-Tag: Release-3.0.0~2147 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=390caef5719a0003621102f759438964b1e44d45;p=bacula%2Fbacula Skip leading | when lex input comes from a pipe as suggested by Michael Stapelberg . git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6059 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/lex.c b/bacula/src/lib/lex.c index adbab02198..3a4262ed22 100644 --- a/bacula/src/lib/lex.c +++ b/bacula/src/lib/lex.c @@ -174,7 +174,7 @@ LEX *lex_open_file(LEX *lf, const char *filename, LEX_ERROR_HANDLER *scan_error) if (fname[0] == '|') { - if ((bpipe = open_bpipe(fname, 0, "rb")) == NULL) { + if ((bpipe = open_bpipe(fname+1, 0, "rb")) == NULL) { free(fname); return NULL; } diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.3 index f28a39ac74..1c23e168ab 100644 --- a/bacula/technotes-2.3 +++ b/bacula/technotes-2.3 @@ -1,6 +1,9 @@ Technical notes on version 2.3 General: +14Dec07 +kes Skip leading | when lex input comes from a pipe as suggested + by Michael Stapelberg . 13Dec07 kes Apply patch for bsmtp Win32 daylight savings time fix supplied by Nerijus Baliunas