]> 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:43:12 +0000 (10:43 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 14 Dec 2007 10:43:12 +0000 (10:43 +0000)
     by Michael Stapelberg <michael@stapelberg.de>.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6060 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/lex.c
bacula/src/tools/bsmtp.c
bacula/technotes-2.1

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 c1a3e22110955f39ae5b3f831dd614181805e715..880ef9b289484df0da8b2783ff6963c21bfddc24 100644 (file)
@@ -216,7 +216,9 @@ __MINGW_IMPORT long     _dstbias;
    long offset;
    _tzset();
    offset = _timezone;
-   offset += _dstbias;
+   if (tm.tm_isdst) {
+      offset += _dstbias;
+   }
    return offset /= 60;
 #else
 
index 0c7e94e952061cf9d96984db72baea4ca878f840..fbbd28fceef9eb29151e67da53cc6240c35195e2 100644 (file)
@@ -1,6 +1,12 @@
               Technical notes on version 2.2
 
 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>
 10Dec07
 kes  This patch corrects a problem where the maximum concurrent storage
      jobs counter gets out of sync during restore jobs causing jobs to