summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* change default syslog facility from LOG_LOCAL6 to LOG_DAEMONReinhard Tartler2020-02-15
| | | Gbp-Pq: Name 03-adjust-syslog-facility.diff
* New upstream version 0.13~~git20190527.g039c4a1Reinhard Tartler2019-05-28
|
* Merge branch 'master' into fix_raidfile_i386Chris Wilson2018-03-12
|\
| * Reimplement OpenSSL 1.1 supportChris Wilson2018-03-03
| | | | | | | | | | | | | | | | | | This time I have made the minimum number of changes necessary to make OpenSSL 1.1 work, and also added more tests which would have caught the issues with the previous attempt. Thanks to Johann Glaser for testing out the new version and reporting the issue with decryption!
| * Add a test that we can setup Blowfish encryption properlyChris Wilson2018-02-27
| |
| * Revert "Add support for OpenSSL 1.1 and replace deprecated function calls"Chris Wilson2018-02-25
| | | | | | | | | | | | Until shown to be safe. See message from Johann Glaser to the mailing list. This reverts commit 85e7efc3fa0477f60318d2cd2144503a9ea8feb9.
* | Fix raidfile tests on 32-bit LinuxChris Wilson2018-03-08
|/ | | | | | | | | | | A recent fix for Solaris (commit 81e9aa6545f7f19124c9f5e88982b867d8732965) broke support for 32-bit Linux (which wasn't spotted because we didn't have any 32-bit builders). Try a different approach: detect whether the lseek syscall takes a 64-bit integer offset, and use that if possible. CMake: reimplement autoconf tests for 64-bit lseek (cherry picked from commit 138ea5d174f146f14d91a16bf5d1ce8e479d2024)
* Add support for OpenSSL 1.1 and replace deprecated function callsChris Wilson2018-01-01
| | | | | | | | | | | | | | | | | | | | | | | See https://github.com/boxbackup/boxbackup/issues/16 for details. Thanks to Chris West @FauxFaux for the initial patch! Use OpenSSL 1.1.0g for Windows superbuild. Fix Windows build by removing calls to obsolete do_ms.bat <https://stackoverflow.com/questions/39076244/why-there-is-no-ms-do-ms-bat-after-perl-configure-vc-win64a/39247560#39247560>. Workaround for incorrect library suffixes searched by FindOpenSSL <https://gitlab.kitware.com/cmake/cmake/issues/17604>. Link OpenSSL statically and fix missing dependency on crypt32.lib. (cherry picked from commit edd3687f067c68b131822e0064cdeff5bf7a3835) (cherry picked from commit b003e009d1fccadf55a0f59a01c66f7b80f9b3e5) (cherry picked from commit cc6e20466b857f7e20d816a2c20cb36f112398ab) (cherry picked from commit 303c6405e3bc1e673dbc691792e0633742c01f4e) (cherry picked from commit 4e24006f75142a254f1a7db76cf9da1e752d9283) (cherry picked from commit 448ac48a89538f67f508f8d21931c5e6e90472c0) (cherry picked from commit 00b3bb0697219ef8c742698dd43d53b538e362b1)
* Replace RAND_pseudo_bytes with RAND_bytesChris Wilson2018-01-01
| | | | | | RAND_pseudo_bytes is less secure and is now deprecated. (cherry picked from commit f449986b68bd12c18d742c91b625779ae75b11a2)
* Fix -Wundefined-bool-conversion compile failure of master branchChris Wilson2017-10-16
| | | | | | | | | | Master build fails with: lib/common/Timer.cpp:171:10: error: reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true [-Werror,-Wundefined-bool-conversion]. Cannot get regtests to pass on this feature branch without fixing this. Also remove unused code from Timers.
* Fix build on ARM64 with unsigned charChris Wilson2017-06-26
| | | | Thanks to Reinhard Tartler for pointing out the problem and suggesting the fix!
* Increase precision of timing on Windows.Chris Wilson2017-06-22
| | | | | | | Should hopefully reduce random failures of timing-dependent tests which rely on subsecond precision for accuracy. (cherry picked from commit c845b2e39fffeb560983a301d810616a6495469d)
* Reduce precision of common timer testChris Wilson2017-06-22
| | | | | | | | | | | | | | | | | | Ideally timers would be perfectly accurate and we could sleep for 1.0 seconds, but on OSX in particular they could fire 50-100 ms late (I've seen 4 ms in practice) and we don't want the tests to fail because of this, because we don't really need that kind of precision in practice. So we reduce the timer intervals by 100ms to be safe. Increase logging level and add timestamps in testcommon. Should help to debug frequent test failures such as Condition [t2.HasExpired()] on OSX hosts on Travis. Add a SettingsGuard to the Console logger for its specific settings, such as showing times and microseconds. (cherry picked from commit a5e6cff1d435329b0121417ed9509e315ce0edd5) (cherry picked from commit 8d02eebce553ed822e0fcd60d6e319384e15ba4b)
* Fix intercept of SYS_open on platforms that only have SYS_openat (e.g. arm64)Chris Wilson2017-06-22
|
* Hopefully fix test/raidfile on Solaris.Chris Wilson2017-06-18
| | | | | 64-bit Solaris has _FILE_OFFSET_BITS defined (to 64), which was wrongly causing the substitute lseek in lib/intercept to enter the 32-bit branch.
* Normalize all the line endingsChris Wilson2017-05-15
|
* Remove unused #includes.Chris Wilson2016-09-19
|
* Simplify AddEventSource usage, avoid strdup().Chris Wilson2016-09-11
|
* Fix infinite loop in RateLimitingStream::Write().Chris Wilson2016-09-11
|
* Throw exception with message, instead of logging then throwing.Chris Wilson2016-09-11
|
* Remove unused member variable.Chris Wilson2016-09-11
|
* Fix Unix compilation using CMake.Chris Wilson2016-09-09
| | | | | | | | | | Add platform detection that's compatible with the old buildsystem and its m4 autoconfigury. Make Travis build and test using CMake as a separate target. Remove unused function BoxGetTemporaryDirectoryName() to fixes compile using CMake on Unix.
* Update platform feature detection to work with CMake.Chris Wilson2016-09-03
| | | | | | | Rewrite some macros in forms that can be parsed by our parser written in CMake language (fake m4 with regexps). Fix incorrect conditional includes and incorrect #if/#ifdef assumptions.
* Fix case of filenames of "text" files used to generate protocols and docs.Chris Wilson2016-08-28
|
* Check that DoHousekeeping() actually returns true.Chris Wilson2015-12-27
|
* Whitespace cleanup.Chris Wilson2015-12-27
|
* Fix deletion of test fixture directories with unicode names on Windows.Chris Wilson2015-12-25
| | | | | | | | We need to use CreateProcessW() instead of system() to pass these filenames to the rd command. Fixes every test that runs after test_unicode_filenames_can_be_backed_up in test/bbackupd.
* Fix deletion of fixtures between tests in test/backupstore.Chris Wilson2015-12-25
|
* Improve handing of error messages that Windows won't decode for some reason.Chris Wilson2015-12-24
|
* Properly initialise pBytesTransferred before WaitForOverlappedOperation returns.Chris Wilson2015-12-24
| | | | | Returning an uninitialised value was causing copying of random amounts of data in bbackupd on command socket disconnect, and crashes.
* Replace mpGetLine pointer with a std::auto_ptr.Chris Wilson2015-12-24
| | | | Allows us to remove cleanup code, because it happens automatically.
* Catch exceptions during destruction of BackupStoreRefCountDatabase as well.Chris Wilson2015-12-24
| | | | | Like HousekeepStoreAccount and BackupStoreCheck, throwing an exception during the destructor will terminate the application in an "unusual way".
* We need to include IOStreamGetLine.h on Unix as well as on Windows.Chris Wilson2015-12-24
|
* Throw an exception if we try to openlog() without closelog() first on Windows.Chris Wilson2015-12-24
| | | | Use INVALID_HANDLE_VALUE for invalid handle values, instead of 0.
* Improve error message when we fail to register our custom Event Source on ↵Chris Wilson2015-12-24
| | | | Windows.
* Remove duplicate error number from Windows log messages.Chris Wilson2015-12-24
| | | | | GetErrorMessage() already includes the error number in the text string that it returns, so we don't need to include it again.
* Catch exceptions during destruction of BackupStoreCheck as well.Chris Wilson2015-12-24
| | | | | Like HousekeepStoreAccount, throwing an exception during the destructor will terminate the application in an "unusual way".
* Add a version of KillServer that takes a pid_file, and reads the PID from it.Chris Wilson2015-12-24
|
* Don't use close() to close a Winsock socket.Chris Wilson2015-12-22
| | | | | We should always use closesocket() instead, which the Close() method already does, so just call it instead.
* Catch and log exceptions in the HousekeepStoreAccount destructor.Chris Wilson2015-12-22
| | | | | | Destructors aren't supposed to throw exceptions, and they can be called while cleaning up from a previous exception, which will terminate the application, so just log the error and carry on.
* Use rd instead of rmdir command, to try to work properly in appveyor.Chris Wilson2015-12-20
| | | | | I think something is on the PATH in Appveyor that makes rmdir /s/q fail, especially when run through Perl.
* Move reusable files from bin/bbstored to lib/bbstored.Chris Wilson2015-12-20
| | | | Break dependendency of test/bbackupd on individual files from other modules.
* Reinstate bbackupquery Makefile.extra, removed by 403e7e2.Chris Wilson2015-12-20
|
* Fix account deletion on Windows.Chris Wilson2015-12-17
| | | | Use the rmdir command instead of rm -rf.
* Remove getpid() that should never have been addedChris Wilson2015-12-14
|
* Print the message that we failed to send to the syslog, to make some ↵Chris Wilson2015-12-14
| | | | debugging possible
* Really fix file locking on WindowsChris Wilson2015-12-14
|
* Merge branch 'appveyor' of github.com:boxbackup/boxbackup into appveyorChris Wilson2015-12-14
|\
| * Fix Windows file locking to work with MSVCChris Wilson2015-12-14
| |
| * Add CTest configurations to CMake. Make some tests work on Windows/MSVC.Chris Wilson2015-12-13
| |