summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* adjust-syslog-facilityDebian QA Group2018-02-28
| | | | | | change default syslog facility from LOG_LOCAL6 to LOG_DAEMON Gbp-Pq: Name 03-adjust-syslog-facility.diff
* revert_to_openssl_1.0Debian QA Group2018-02-28
| | | | | | | | | | | | | | commit bc48bec97b65534966da74a07ed3edb3f13f6263 (github/revert_openssl_1_1) Author: Chris Wilson <chris+github@qwirx.com> Date: Sun Feb 25 08:18:34 2018 +0000 Revert "Add support for OpenSSL 1.1 and replace deprecated function calls" Until shown to be safe. See message from Johann Glaser to the mailing list. This reverts commit 85e7efc3fa0477f60318d2cd2144503a9ea8feb9. Gbp-Pq: Name 01-revert_to_openssl_1.0.diff
* 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
| |
| * Move reusable code out of bin directories.Chris Wilson2015-12-13
| | | | | | | | | | Allows tests to depend on lib/bbackupd instead of bin/bbackupd, which was always a hack, and really doesn't work with CMake.
| * Add some little string functions to Utils.cpp.Chris Wilson2015-12-13
| | | | | | | | | | | | | | These functions check whether the beginning and end of a std::string match a supplied prefix or suffix, and remove that prefix or suffix, returning the remaining part. They are almost but not entirely trivial, and giving them names makes the code that uses them much more readable.
| * Remove the duplicate copy constructor that MSVC warns about.Chris Wilson2015-12-13
| |
| * Define TEST_EXECUTABLE to allow it to have different names on MSVC/CMake.Chris Wilson2015-12-13
| |
* | Add some little string functions to Utils.cpp.Chris Wilson2015-12-12
| | | | | | | | | | | | | | These functions check whether the beginning and end of a std::string match a supplied prefix or suffix, and remove that prefix or suffix, returning the remaining part. They are almost but not entirely trivial, and giving them names makes the code that uses them much more readable.