]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Fix a few places in lib/message.c where the open fd may
authorKern Sibbald <kern@sibbald.com>
Thu, 22 Feb 2007 15:36:17 +0000 (15:36 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 22 Feb 2007 15:36:17 +0000 (15:36 +0000)
     not be zeroed.
21Feb07
kes  Add LANG=C to autoconf/randpass so it works with languages other
     than English.  Fixes bug #788.

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

bacula/autoconf/randpass
bacula/src/lib/message.c
bacula/src/version.h
bacula/technotes-2.0

index af30bfb929bbf4e455085ea84247821fbf8223d7..2294a2333160588f87c0113570fe4761b8f24365 100755 (executable)
@@ -3,6 +3,7 @@
 #   Generate a random password, written to standard output
 #   By John Walker
 #
+LANG=C
 if test "x$1" = "x" ; then
    PWL=48      # Password length in characters
 else
index 9b0f3069e58e04fa0a86de3f651cb481a2bbcba7..e4cef4e6ac1a5f005b7117d59c7443eba21a5940 100755 (executable)
@@ -9,7 +9,7 @@
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
+   Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
    Switzerland, email:ftf@fsfeurope.org.
 */
+/*
+ * Bacula message handling routines
+ *
+ *   Kern Sibbald, April 2000
+ *
+ *   Version $Id$
+ *
+ */
 
 
 #include "bacula.h"
@@ -426,6 +434,7 @@ void close_msg(JCR *jcr)
          case MD_APPEND:
             if (d->fd) {
                fclose(d->fd);            /* close open file descriptor */
+               d->fd = NULL;
             }
             break;
          case MD_MAIL:
@@ -486,6 +495,7 @@ void close_msg(JCR *jcr)
 rem_temp_file:
             /* Remove temp file */
             fclose(d->fd);
+            d->fd = NULL;
             unlink(d->mail_filename);
             free_pool_memory(d->mail_filename);
             d->mail_filename = NULL;
@@ -747,6 +757,7 @@ send_to_file:
                 /* On error, we close and reopen to handle log rotation */
                 if (ferror(d->fd)) {
                    fclose(d->fd);
+                   d->fd = NULL;
                    if (open_dest_file(jcr, d, mode)) {
                       fputs(dt, d->fd);
                       fputs(msg, d->fd);
index 42ec7035f23419f86b4a6310fd52d69367ba7ed6..c03c05e0c91c50a7f9425c331f693342b61a217b 100644 (file)
@@ -4,8 +4,8 @@
 
 #undef  VERSION
 #define VERSION "2.0.3"
-#define BDATE   "19 February 2007"
-#define LSMDATE "19Feb07"
+#define BDATE   "22 February 2007"
+#define LSMDATE "22Feb07"
 
 #define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n"
 #define BYEAR "2007"       /* year for copyright messages in progs */
index 39f37a65c9a4399f92c8b51879cc70fadb15512a..b1af0488f52cfa9d21390ee2562a7635ea149960 100644 (file)
@@ -1,6 +1,12 @@
               Technical notes on version 2.0
 
 General:
+22Feb07
+kes  Fix a few places in lib/message.c where the open fd may
+     not be zeroed.
+21Feb07
+kes  Add LANG=C to autoconf/randpass so it works with languages other
+     than English.  Fixes bug #788.
 20Feb07
 ebl  Revert ClientRunBeforeJob as it was in 1.38.x
      This fixes bug #780