Fix floating point exception.

dev->max_file_size = 2 * num_recs * dev->max_block_size;

max_block_size can be 0

which gives a max_file_size which is 0

when you then calculate

write_eof = dev->max_file_size / REC_SIZE; /*compute when we add EOF*/

then write_eof = 0 and when you then do

if ((block->BlockNumber % write_eof) == 0) {

You get a nice Floating Point Execption.

We now set max_file_size to something more appropriate and assert on
write_eof being bigger then 0 so we never do a divide by zero again.

Fixes #96: btape crashes using multiple tape test when tape was written by a fill test before.
Fix database detection macros.

Some platforms have a lying mysql_config which says libs are somewhere
they are not. Also did some reindenting of the text and now only set
that we have a certain backend if we really found a libdir with some
libraries.
Rebuild configure.
Fix using default but not setting ITEM_DEFAULT flag.
Make default intialization somewhat more robust.

A config entry with a default value but without the ITEM_DEFAULT
flag is almost always an error so just warn about it and set the flag so
we no longer get nasty surprises. Also found one additional error.
Fix encrypted compressed data in compatible mode.

Forgot to setup the cipher buffer.
Add some safeguards for checking if we have a director.

When we never authenticated with an director the jcr->director pointer
will be NULL. When we then try to run the after runscripts (which are
not there also as they are passed in by the director we crash. So added
some extra safeguards and don't call the runscript at all when there
are not set.

Fix #103: bareos-fd 13.1 on ubuntu 10.04.4 crashes with segmentation violation
Fix btraceback script.
Fix some bugs in non supported sql pooling code.
xUbuntu_10.04

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
apt-get install: automatic configure

always assume "no" when updating packages.
Also add a workaround of sending carrage returns,
because of a problem with updating the mysql-common package.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Mostly cosmetic enhancements of windows installer

- using the right icons in the dialogs
- cleanup of text formatting
- added help text for /D, /S and /? params
- commented out catalog directive in generated config
  this is also described in a comment
- fixes uninstall problem on win64

  Fixes: #49  : Install Parameters and Helptext for cmd installation
  Fixes: #121 : Deinstallation of windows installer works, but is not removed from the software list in windows.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Merge branch 'master' into joergs/mvw-users