]> git.sur5r.net Git - bacula/bacula/commitdiff
Attempt to fix bsmtp editing on OSes without %z editing.
authorKern Sibbald <kern@sibbald.com>
Mon, 14 May 2007 22:58:12 +0000 (22:58 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 14 May 2007 22:58:12 +0000 (22:58 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4787 91ce42f0-d328-0410-95d8-f526ca767f89

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

index 862269c357956c07c32d03858d8a9f109626cfa5..3bd13f0fef3aa5d2d697157e43ebbe730210d971 100644 (file)
@@ -475,7 +475,11 @@ __MINGW_IMPORT long     _dstbias;
    size_t length = strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S", &tm);
    sprintf(&buf[length], " %+2.2ld%2.2u", -tzoffset / 60, abs(tzoffset) % 60);
 #else
-   strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S %z", &tm);
+#ifdef HAVE_SUN_OS 
+   strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S (%Z)", &tm);
+#else
+   strftime(buf, sizeof(buf), "%a, %d %b %Y %H:%M:%S %z (%Z)", &tm);
+#endif
 #endif
    fprintf(sfp, "Date: %s\r\n", buf);
    Dmsg1(10, "Date: %s\r\n", buf);
index 2757331ceaca1d0f037a63fc1b9a21dab30aa5b2..2daaefb4fe436af4ad37026ba69eb396a088fc56 100644 (file)
@@ -2,6 +2,7 @@
 
 General:
 14May07 
+kes  Attempt to fix bsmtp editing on OSes without %z editing.
 kes  Do better checking for the MySQL 64 bit libraries looking for both
      .a and .so libraries.
 kes  Add a kludge for Ubuntu's non-standard locations for MySQL -- allow