]> git.sur5r.net Git - bacula/bacula/commitdiff
Skip leading | when lex input comes from a pipe as suggested
authorKern Sibbald <kern@sibbald.com>
Fri, 14 Dec 2007 10:42:37 +0000 (10:42 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 14 Dec 2007 10:42:37 +0000 (10:42 +0000)
     by Michael Stapelberg <michael@stapelberg.de>.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6059 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/lex.c
bacula/technotes-2.3

index adbab02198bf30b969d184a6f8e3b691c5a4905b..3a4262ed22a5cfc12222faf4710a8e21506ddd60 100644 (file)
@@ -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;
       }
index f28a39ac74f539ac1f5ef5c5556fd0ed7fbced9b..1c23e168ab3fe496bc23005503ca36031c0ff18c 100644 (file)
@@ -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 <michael@stapelberg.de>.
 13Dec07
 kes  Apply patch for bsmtp Win32 daylight savings time fix supplied by
      Nerijus Baliunas <nerijus@users.sourceforge.net>