-*.txt
-wxconsole
 1
 2
-txt
-set-gnome2
-set-gnome1.4
-kerns-gprof-config
 autom4te.cache
-Makefile
 bacula
 btraceback
 config.cache
 config.status
 configure.lineno
 console
+console.log
+console.sum
 diff
 fd
 gconsole
-kerns-console.conf
-kerns-dird.conf
-kerns-filed.conf
-kerns-gnome-console.conf
-kerns-mysql-config
-kerns-sqlite-config
-kerns-stored.conf
 kernsconfig
 kernsconfignodb
+kerns-console.conf
 kernsdesign
+kerns-dird.conf
 kernsdisclaimers
 kernsdone
+kerns-filed.conf
 kernsfloppymount
+kerns-gnome-console.conf
+kerns-gprof-config
+kerns-mysql-config
+kerns-nopython-conf
 kernsnosqlconfig
 kernsolarisconfig
+kerns-postgresql-config
 kernsproductionconfig
+kerns-sqlite-config
+kerns-stored.conf
 kernssunproductionconfig
 kernswinconfig
 kernswinproductionconfig
+Makefile
+newdb
+newtape
+run
+run_clean
+run_clean_tape
+run_two
+run_two_broken
+set-gnome1.4
+set-gnome2
 startit
 startmysql
+startpostgre
 stopit
 stopmysql
-console.log
-console.sum
-zapall
-zaptapes
 stoppostgre
-startpostgre
-kerns-postgresql-config
-run
-run_clean
-run_two_broken
-run_two
-run_clean_tape
-newdb
-kerns-nopython-conf
-newtape
+test.out
+test-tape
 time.py
 time.pyc
-test.out
+txt
+*.txt
+wxconsole
+zapall
+zaptapes
+kerns-pgsql-config
+fake-mtx
 
 
-Released as 1.38.0 28Oct05:
+
+Changes to 1.38.1:
+- Apply patch supplied by Eric Bollinger to fix PostgreSQL    
+  grant on status. Bug #465
+- Apply patch supplied by Eric Bollinger to fix PostgreSQL
+  update script. Bug #464
+- Fix off by one for last Slot of autochanger for label.
+- Update release date.
+- Tweak an authentication error message in dir.
+- Fix autoloader so that mutex is set and released around
+  each run_program().  There was a missing set.
+- Remove an unnecessary drive release in autochanger.
+- Modify configure.in to add execute option to sqlite3 catalog  
+  scripts.
+- Create update_xxx_table_8_to_9 scripts for updatedb
+- Fix wrong variable in bpipe.c debug output reported by user.
+- Fix improper placement of encode_and_send_attributes() in
+  FD backup.c causing first file of non-portable Win32 backup
+  to have wrong stream. Reported by Thorsten.
+- Move the -lcrypt for PostgreSQL after the PostgreSQL libs in
+  autoconf/bacula-macros/db.m4 as suggested by user.  Fixes bug #457.
+- Remove @STATIC_CONS@ from tray-monitor Makefile as suggested
+  by user. Fixes bug #456.
+
+Released 1.38.0 (28Oct05): 31 October 2005
 
 Changes to 1.37.42:
 26Oct05
 
 
-          Release Notes for Bacula 1.38.0
+          Release Notes for Bacula 1.38.1
 
   Bacula code: Total files = 420 Total lines = 138,440 (*.h *.c *.in)
   20,440 additional lines of code since version 1.36.3
 
-Major Changes:
+Changes since 1.38.0:
+- Fix several problems with PostgreSQL scripts.   
+- Critical: allow restore of the first file of non-portable Win32 backup.
+- Important: with muliple concurrent jobs the autochanger could get
+  confused because of a missing mutex.
+- Fix accessing last slot in label and update slots.       
+- Modify configure.in to add execute option to sqlite3 catalog  
+  scripts.
+- Create update_xxx_table_8_to_9 scripts for updatedb
+- Move the -lcrypt for PostgreSQL after the PostgreSQL libs in
+  autoconf/bacula-macros/db.m4 as suggested by user.  Fixes bug #457.
+- Remove @STATIC_CONS@ from tray-monitor Makefile as suggested
+  by user. Fixes bug #456.
+
+
+Major Changes in 1.38:
 - Fixed out of order Volumes in restore.
 - Improved algorithm for reserving drives in multiple drive
   autochangers. Autochange users MUST use the new Autochanger
   Typically you will see this in the Storage daemon first.  The
   solution is to compile Bacula ensuring that no optimization is
   turned on (normally it is -O2).
+  This same compiler bug has been reported and confirmed with
+  gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) running on
+  an AMD64 CPU.  This for the moment, I would recommend that all
+  users of GCC 4.0.1 or greater turn off all optimization when
+  compiling.
 
 
 Other Items:
 
--- /dev/null
+              Technical notes on version 1.38  
+                        Kern Sibbald
+
+General:
+
+Changes to 1.38.1:
+- Apply patch supplied by Eric Bollinger to fix PostgreSQL    
+  grant on status. Bug #465
+- Apply patch supplied by Eric Bollinger to fix PostgreSQL
+  update script. Bug #464
+- Fix off by one for last Slot of autochanger for label.
+- Update release date.
+- Tweak an authentication error message in dir.
+- Fix autoloader so that mutex is set and released around
+  each run_program().  There was a missing set.
+- Remove an unnecessary drive release in autochanger.
+- Modify configure.in to add execute option to sqlite3 catalog  
+  scripts.
+- Create update_xxx_table_8_to_9 scripts for updatedb
+- Fix wrong variable in bpipe.c debug output reported by user.
+- Fix improper placement of encode_and_send_attributes() in
+  FD backup.c causing first file of non-portable Win32 backup
+  to have wrong stream. Reported by Thorsten.
+- Move the -lcrypt for PostgreSQL after the PostgreSQL libs in
+  autoconf/bacula-macros/db.m4 as suggested by user.  Fixes bug #457.
+- Remove @STATIC_CONS@ from tray-monitor Makefile as suggested
+  by user. Fixes bug #456.
+
+Released 1.38.0 (28Oct05): 31 October 2005
 
--- /dev/null
+              Technical notes on version 1.39  
+                        Kern Sibbald
+
+General:
+
+Changes to 1.39.0:
+- Apply patch supplied by Eric Bollinger to fix PostgreSQL    
+  grant on status. Bug #465
+- Apply patch supplied by Eric Bollinger to fix PostgreSQL
+  update script. Bug #464
+- Tweak #ifdefing a bit in new Win32 stream code.
+- Fix #ifdeffing for FD_NO_SEND_TEST.
+- Add documentation of performance #defines
 
 host.h
 perlgui
 python
+pyqt
 
 grant all on mediatype   to ${USER};
 grant all on storage     to ${USER};
 grant all on device      to ${USER};
+grant all on status      to ${USER};
 
 -- for sequences on those tables
 
 
 UPDATE pool set labeltype=0;
 ALTER TABLE pool ALTER COLUMN labeltype SET NOT NULL;
 ALTER TABLE pool ADD COLUMN NextPoolId       integer;
-ALTER TABLE pool SET NextPoolId=0;
+UPDATE pool SET NextPoolId=0;
 ALTER TABLE pool ADD COLUMN MigrationHighBytes BIGINT;
-ALTER TABLE pool SET MigrationHighBytes=0;
+UPDATE pool SET MigrationHighBytes=0;
 ALTER TABLE pool ADD COLUMN MigrationLowBytes  BIGINT;
-ALTER TABLE pool SET MigrationLowBytes=0;
+UPDATE pool SET MigrationLowBytes=0;
 ALTER TABLE pool ADD COLUMN MigrationTime      BIGINT;
-ALTER TABLE pool SET MigrationTime=0;
+UPDATE pool SET MigrationTime=0;
 
 
 ALTER TABLE jobmedia ADD COLUMN Copy integer;
    DeviceId SERIAL,
    Name TEXT NOT NULL,
    MediaTypeId INTEGER NOT NULL,
-   StorageId INTEGER UNSIGNED,
+   StorageId INTEGER,
    DevMounts INTEGER NOT NULL DEFAULT 0,
    DevReadBytes BIGINT NOT NULL DEFAULT 0,
    DevWriteBytes BIGINT NOT NULL DEFAULT 0,
    DevReadTime BIGINT NOT NULL DEFAULT 0,
    DevWriteTime BIGINT NOT NULL DEFAULT 0,
    DevReadTimeSinceCleaning BIGINT NOT NULL DEFAULT 0,
-   DevWriteTimeSinceCleaning BIGINT UNSIGNED DEFAULT 0,
+   DevWriteTimeSinceCleaning BIGINT DEFAULT 0,
    CleaningDate TIMESTAMP WITHOUT TIME ZONE,
    CleaningPeriod BIGINT NOT NULL DEFAULT 0,
    PRIMARY KEY(DeviceId)
 
 bconsole.conf
 startit
 stopit
+static-bconsole
 
 2
 3
 main.c
+static-gnome-console
 
  */
 
 #undef  VERSION
-#define VERSION "1.38.1"
+#define VERSION "1.39.0"
 #define BDATE   "05 November 2005"
 #define LSMDATE "05Nov05"
 
 
 ALTER TABLE pool ADD COLUMN labeltype integer;
 UPDATE pool set labeltype=0;
 ALTER TABLE pool ALTER COLUMN labeltype SET NOT NULL;
-ALTER TABLE pool ADD COLUMN NextPoolId       integer;
-ALTER TABLE pool SET NextPoolId=0;
+ALTER TABLE pool ADD COLUMN NextPoolId        integer;
+UPDATE pool SET NextPoolId=0;
 ALTER TABLE pool ADD COLUMN MigrationHighBytes BIGINT;
-ALTER TABLE pool SET MigrationHighBytes=0;
+UPDATE pool SET MigrationHighBytes=0;
 ALTER TABLE pool ADD COLUMN MigrationLowBytes  BIGINT;
-ALTER TABLE pool SET MigrationLowBytes=0;
+UPDATE pool SET MigrationLowBytes=0;
 ALTER TABLE pool ADD COLUMN MigrationTime      BIGINT;
-ALTER TABLE pool SET MigrationTime=0;
+UPDATE pool SET MigrationTime=0;
 
 
 ALTER TABLE jobmedia ADD COLUMN Copy integer;
    DeviceId SERIAL,
    Name TEXT NOT NULL,
    MediaTypeId INTEGER NOT NULL,
-   StorageId INTEGER UNSIGNED,
+   StorageId INTEGER,
    DevMounts INTEGER NOT NULL DEFAULT 0,
    DevReadBytes BIGINT NOT NULL DEFAULT 0,
    DevWriteBytes BIGINT NOT NULL DEFAULT 0,
    DevReadTime BIGINT NOT NULL DEFAULT 0,
    DevWriteTime BIGINT NOT NULL DEFAULT 0,
    DevReadTimeSinceCleaning BIGINT NOT NULL DEFAULT 0,
-   DevWriteTimeSinceCleaning BIGINT UNSIGNED DEFAULT 0,
+   DevWriteTimeSinceCleaning BIGINT DEFAULT 0,
    CleaningDate TIMESTAMP WITHOUT TIME ZONE,
    CleaningPeriod BIGINT NOT NULL DEFAULT 0,
    PRIMARY KEY(DeviceId)
 
 
 bindir=/usr/bin
 cd /var/bacula/working
-sqlite=postgresql
+sqlite=sqlite3
 
 ${bindir}/${sqlite} $* bacula.db <<END-OF-DATA
 BEGIN TRANSACTION;
    VolRetention, VolUseDuration, MaxVolJobs,
    MaxVolFiles, MaxVolBytes,
    InChanger, StorageId, MediaAddressing,
-   VolReadTime, VolWriteTime,      
+   VolReadTime, VolWriteTime,       
    EndFile, EndBlock)
    SELECT * FROM Media_backup;
 
 
 
 bindir=/usr/bin
 cd /var/bacula/working
-sqlite=postgresql
+sqlite=sqlite
 
 ${bindir}/${sqlite} $* bacula.db <<END-OF-DATA
 BEGIN TRANSACTION;
    VolRetention, VolUseDuration, MaxVolJobs,
    MaxVolFiles, MaxVolBytes,
    InChanger, StorageId, MediaAddressing,
-   VolReadTime, VolWriteTime,      
+   VolReadTime, VolWriteTime,       
    EndFile, EndBlock)
    SELECT * FROM Media_backup;