Changesets: bareos

bareos-19.2 c8f85d61

2020-05-04 13:46

arogge

Ported: N/A

Details Diff
core: sort jobids before purging

previously the list of jobs was not sorted when the prune volume code
ran. This patch sorts the list so the log message and SQL query are
more predictable.
This also changes some prototypes to const where possible (and required
by std::string).
Lastly we add a "wait" in the volume-pruning-test to make sure the
previous jobs have finished before we start the jobs that prunes.

(cherry picked from commit 4b855964e758ff2882bfb800e498a079e91eaa9b)
mod - core/src/dird/ua_purge.cc Diff File
mod - core/src/dird/ua_purge.h Diff File
mod - systemtests/tests/volume-pruning-test/testrunner Diff File

master ea666394

2020-04-30 16:50

gjelu

Ported: N/A

Details Diff
Do not call fdatasync() and fix m_flags->flags_

Fixes 0001227: Fix fadvise bug

Suggested changes implemented:
- https://github.com/bareos/bareos/pull/496#discussion_r417897291
- https://github.com/bareos/bareos/pull/496#discussion_r417889911
Affected Issues
0001227
mod - core/src/findlib/bfile.cc Diff File

master ed49f362

2020-04-30 16:48

int-red


Committer: franku

Ported: N/A

Details Diff
docs: fix shell example script for Bareos installation

Fixes 0001219: Shell example script for Bareos installation on Debian / Ubuntu has wrong dist name

updated AUTHORS
Affected Issues
0001219
mod - AUTHORS Diff File
mod - docs/manuals/source/IntroductionAndTutorial/InstallingBareos.rst Diff File

bareos-19.2 020676b0

2020-04-30 16:48

int-red


Committer: franku

Ported: N/A

Details Diff
docs: fix shell example script for Bareos installation

Fixes 0001219: Shell example script for Bareos installation on Debian / Ubuntu has wrong dist name

updated AUTHORS
Affected Issues
0001219
mod - AUTHORS Diff File
mod - docs/manuals/source/IntroductionAndTutorial/InstallingBareos.rst Diff File

master 677de8e7

2020-04-30 16:26

arogge

Ported: N/A

Details Diff
core: remove old GetWindowsVersionString

Previously the function GetWindowsVersionString was used in some places
to determine the running windows version.
This patch removes the function and its usage. It is replaced by the
os-independent GetOsInfoString() and kBareosVersionStrings.GetOsInfo().
Its functionality has been moved into the windows-specific
implementation of the new function.
mod - core/src/filed/CMakeLists.txt Diff File
mod - core/src/filed/status.cc Diff File
mod - core/src/stored/CMakeLists.txt Diff File
mod - core/src/stored/status.cc Diff File
mod - core/src/win32/generic/main.cc Diff File

master d61043df

2020-04-30 15:58

frank

Ported: N/A

Details Diff
dird: fix status schedule(r) command behaviour

This commit fixes the behaviour of the status schedule(r) command.

- Take disabled resources into account when a job is given
- Take disabled resources into account when a client is given
- Take disabled resources into account when a schedule is given
mod - core/src/dird/ua_status.cc Diff File

master 20b223a5

2020-04-30 15:11

franku

Ported: N/A

Details Diff
libcloud-plugin: add more debugging output
mod - core/src/plugins/filed/BareosFdPluginLibcloud.py Diff File
mod - core/src/plugins/filed/BareosLibcloudApi.py Diff File

master a9523edd

2020-04-29 18:23

readonly


Committer: franku

Ported: N/A

Details Diff
postgres-plugin: normalize postgres lsn to make it fully comparable

- output of select pg_current_wal_lsn(); is a hex-number formatted as string of varying length
mod - core/src/plugins/filed/BareosFdPluginPostgres.py Diff File

master 28191063

2020-04-29 17:49

arogge

Ported: N/A

Details Diff
core: remove HAVE_(V)SNPRINTF

these functions are required by the standard and can be assumed to
exist.
mod - core/cmake/BareosCheckFunctions.cmake Diff File
mod - core/src/include/config.h.in Diff File
mod - core/src/win32/compat/include/mingwconfig.h Diff File

master 79c2409c

2020-04-29 17:22

arogge

Ported: N/A

Details Diff
core: avoid UB in identifier names

Every identifier starting with an underscore and continuing with an
uppercase letter is reserved and its use is undefined behaviour.
This patch renames the identifiers _PATH_BAREOS_BACKENDDIR,
_PATH_BAREOS_PIDDIR and _PATH_BAREOS_WORKINGDIR to not contain a leading
underscore.
mod - core/CMakeLists.txt Diff File
mod - core/src/dird/dbcheck.cc Diff File
mod - core/src/dird/dird_conf.cc Diff File
mod - core/src/filed/filed_conf.cc Diff File
mod - core/src/include/config.h.in Diff File
mod - core/src/stored/bscan.cc Diff File
mod - core/src/stored/stored_conf.cc Diff File
mod - core/src/win32/compat/include/mingwconfig.h Diff File

master 668d76a6

2020-04-29 17:18

arogge

Ported: N/A

Details Diff
core: remove lld and llu

This patch removes the definitions of lld and llu, that were rarely used
and could simply be replaced by "lld" and "llu".
mod - core/cmake/BareosSetVariableDefaults.cmake Diff File
mod - core/src/dird/catreq.cc Diff File
mod - core/src/filed/status.cc Diff File
mod - core/src/filed/verify_vol.cc Diff File
mod - core/src/include/config.h.in Diff File
mod - core/src/stored/btape.cc Diff File
mod - core/src/win32/compat/include/mingwconfig.h Diff File

master dc74d78a

2020-04-29 16:49

arogge

Ported: N/A

Details Diff
core: remove distver constant from message.cc

For the sole purpose of printing its value on a traceback there is a
constant string in message.cc that contains the built-time system
information.
This patch removes the constant and its use in the backtrace scripts.
mod - core/scripts/btraceback.dbx Diff File
mod - core/scripts/btraceback.gdb Diff File
mod - core/src/lib/message.cc Diff File

master e8563891

2020-04-29 16:39

arogge

Ported: N/A

Details Diff
core: provide GetOsInfo() in kBareosVersionStrings

This patch adds a new function GetOsInfo() to kBareosVersionStrings. In
the future this function will be used as a replacement of the DISTVER
definition.
Eventually the GetOsInfo() should retrieve the information at runtime
instead of having it compiled in.

This patch also replaces DISTVER with a call to
kBareosVersionStrings.GetOsInfo() where possible. For windows this means
that we now always report the information obtained at runtime when the
program started.
mod - core/src/console/console.cc Diff File
mod - core/src/dird/backup.cc Diff File
mod - core/src/dird/migrate.cc Diff File
mod - core/src/dird/restore.cc Diff File
mod - core/src/dird/ua_cmds.cc Diff File
mod - core/src/dird/ua_status.cc Diff File
mod - core/src/dird/verify.cc Diff File
mod - core/src/filed/dir_cmd.cc Diff File
mod - core/src/filed/status.cc Diff File
mod - core/src/lib/CMakeLists.txt Diff File
add - core/src/lib/osinfo.cc Diff File
add - core/src/lib/osinfo.h Diff File
add - core/src/lib/osinfo_win32.cc Diff File
mod - core/src/lib/version.h Diff File
mod - core/src/stored/status.cc Diff File

master 61227bbb

2020-04-29 14:40

arogge

Ported: N/A

Details Diff
core: remove HOST_OS, always use DISTVER instead
mod - core/src/dird/ua_cmds.cc Diff File
mod - core/src/filed/dir_cmd.cc Diff File
mod - core/src/include/config.h.in Diff File

master 86c6fa47

2020-04-29 14:20

arogge

Ported: N/A

Details Diff
dir: avoid heap-overflow during verify job

Fixes 0001210: Security vulnerability results in heap overflow in director
when doing a Verify job against a file daemon.

Previously the code did not check that the target buffer that scanf()
wrote into was big enough to fit the data.
This patch now resizes the buffer to the size of the message buffer that
is being parsed ensuring that there is no heap overflow anymore.
Affected Issues
0001210
mod - core/src/dird/fd_cmds.cc Diff File

bareos-17.2 d41779a0

2020-04-29 14:20

arogge

Ported: N/A

Details Diff
dir: avoid heap-overflow during verify job

Fixes 0001210: Security vulnerability results in heap overflow in director
when doing a Verify job against a file daemon.

Previously the code did not check that the target buffer that scanf()
wrote into was big enough to fit the data.
This patch now resizes the buffer to the size of the message buffer that
is being parsed ensuring that there is no heap overflow anymore.

(backport of 86c6fa479a21a1464366babb74e6cf33770ed7ae)
Affected Issues
0001210
mod - src/dird/fd_cmds.c Diff File

bareos-18.2 66c3f31f

2020-04-29 14:20

arogge

Ported: N/A

Details Diff
dir: avoid heap-overflow during verify job

Fixes 0001210: Security vulnerability results in heap overflow in director
when doing a Verify job against a file daemon.

Previously the code did not check that the target buffer that scanf()
wrote into was big enough to fit the data.
This patch now resizes the buffer to the size of the message buffer that
is being parsed ensuring that there is no heap overflow anymore.

(backport of 86c6fa479a21a1464366babb74e6cf33770ed7ae)
Affected Issues
0001210
mod - core/src/dird/fd_cmds.cc Diff File

bareos-19.2 1faaffa4

2020-04-29 14:20

arogge

Ported: N/A

Details Diff
dir: avoid heap-overflow during verify job

Fixes 0001210: Security vulnerability results in heap overflow in director
when doing a Verify job against a file daemon.

Previously the code did not check that the target buffer that scanf()
wrote into was big enough to fit the data.
This patch now resizes the buffer to the size of the message buffer that
is being parsed ensuring that there is no heap overflow anymore.

(cherry picked from commit 86c6fa479a21a1464366babb74e6cf33770ed7ae)
Affected Issues
0001210
mod - core/src/dird/fd_cmds.cc Diff File

bareos-17.2 916b63c7

2020-04-29 14:20

arogge

Ported: N/A

Details Diff
dir: avoid heap-overflow during verify job

Fixes 0001210: Security vulnerability results in heap overflow in director
when doing a Verify job against a file daemon.

Previously the code did not check that the target buffer that scanf()
wrote into was big enough to fit the data.
This patch now resizes the buffer to the size of the message buffer that
is being parsed ensuring that there is no heap overflow anymore.

(backport of 86c6fa479a21a1464366babb74e6cf33770ed7ae)
Affected Issues
0001210
mod - src/dird/fd_cmds.c Diff File

master 565315e4

2020-04-28 21:25

franku


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0000497 from bareos/dev/franku/master/testing-docs

dev/franku/master/testing docs
mod - docs/manuals/source/DeveloperGuide.rst Diff File
mod - docs/manuals/source/DeveloperGuide/BuildAndTestBareos.rst Diff File
add - docs/manuals/source/DeveloperGuide/BuildAndTestBareos/documentation.rst Diff File
add - docs/manuals/source/DeveloperGuide/BuildAndTestBareos/systemtests.rst Diff File

master fc7a7f3f

2020-04-28 18:33

arogge

Ported: N/A

Details Diff
filed: remove support for bVarDistName

The plugin interface allowed to query the platform, distribution and
version of the filedaemon using bVarDistName. This has not been used by
any plugin and the provided value was of questionable quality.
This patch removes support for bVarDistName. Querying it will now raise
an error. The related dist_name from message.cc that was used solely for
this purpose has also been removed.
mod - core/src/filed/fd_plugins.cc Diff File
mod - core/src/lib/message.cc Diff File
mod - core/src/tests/test_fd_plugins.cc Diff File

master 5b5aa28a

2020-04-28 18:05

arogge

Ported: N/A

Details Diff
core: rename DISTNAME to PLATFORM

The DISTNAME contains a Bareos-specific short-name of the platform that
is built. As such it is not the DISTNAME itself, but the Bareos-specific
platform identifier.
This patch now renames DISTNAME to PLATFORM.
mod - core/CMakeLists.txt Diff File
mod - core/cmake/BareosGenerateDebianInfo.cmake Diff File
mod - core/cmake/BareosGetDistInfo.cmake Diff File
mod - core/cmake/distname.sh Diff File
mod - core/platforms/CMakeLists.txt Diff File
mod - core/src/dird/ua_cmds.cc Diff File
mod - core/src/filed/dir_cmd.cc Diff File
mod - core/src/include/config.h.in Diff File
mod - core/src/lib/message.cc Diff File

master 228113a0

2020-04-28 17:37

pstorz


Committer: franku

Ported: N/A

Details Diff
docs: reword introduction for systemtests
mod - docs/manuals/source/DeveloperGuide/BuildAndTestBareos/systemtests.rst Diff File

master 544b82bc

2020-04-28 17:19

frank


Committer: GitHub

Ported: N/A

Details Diff
Merge pull request 0000493 from bareos/dev/fbergkemper/master/s3975
mod - core/src/dird/jcr_private.h Diff File
mod - core/src/dird/job.cc Diff File
mod - core/src/dird/ua.h Diff File
mod - core/src/dird/ua_audit.cc Diff File
mod - core/src/dird/ua_restore.cc Diff File
mod - core/src/dird/ua_run.cc Diff File
mod - core/src/dird/ua_tree.cc Diff File

master 9820efa0

2020-04-27 19:13

pstorz

Ported: N/A

Details Diff
systemtests: set default timeout to 90s in all tests
mod - systemtests/CMakeLists.txt Diff File
 First  Prev  1 2 3 ... 60 ... 120 ... 180 ... 221 222 223 224 225 226 227 ... 240 ... 300 ... 360 ... 420 ... 480 ... 540 ... 600 ... 613 614 615  Next  Last