summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* Improve error logging in win32 emu library.Chris Wilson2015-04-06
| | | | | | Consistently capture the last Windows error code in the global variable winerrno. Add logging macros that report the Windows error message for this error code.
* Catch setitimer() failure, throw exceptions with descriptive messages in ↵Chris Wilson2015-04-06
| | | | Timer.cpp.
* Whitespace and semicolon-after-macro fixes.Chris Wilson2015-04-06
|
* Add missing timeouts to Archive reads.Chris Wilson2015-04-06
| | | | Allows Archive to be used safely on network streams.
* Fix crash when compiled in release mode caused by refcount not decrementing.Chris Wilson2015-02-26
| | | | | | The call to decrement the refcount was in an ASSERT macro, so compiled out in release mode.
* Fix BOX_SYSLOG macro to provide a category.Chris Wilson2015-02-25
|
* Reduce verbosity of testcommon by hiding some log messages.Chris Wilson2015-02-25
|
* Reduce test output noise by hiding some error messages in tests.Chris Wilson2015-02-25
| | | | | Should make the Travis logs shorter and more readable.
* Add test for hardlink handling.Chris Wilson2015-01-04
|
* Don't redirect logging to stderr any more.Chris Wilson2015-01-04
| | | | | | We have more fine-grained control over logging now, including ability to log to a file in bbackupquery and all daemons, and users can't redirect stderr on Windows. https://www.boxbackup.org/ticket/50
* Compile fix for MSVC (Visual Studio) 2010.Chris Wilson2015-01-02
|
* Compile fix for loading BoxConfig.h in MinGWChris Wilson2015-01-02
|
* Add missing include file for PATH_MAX.Chris Wilson2015-01-02
|
* Fix random timezone errors on restore.Chris Wilson2015-01-02
| | | | Work in UTC inside Box Backup, not local time.
* Remove unused variableChris Wilson2015-01-02
|
* Fix error logging when file open fails on Windows.Chris Wilson2015-01-02
| | | | | | We need to use the saved Windows error code from GetLastError(), rather than calling it again, because another system call has run in the mean time and GetLastError() will now return 0.
* Write memory leak report files to current working directory saved at startup.Chris Wilson2015-01-02
| | | | | | Fixes tests broken by changing current directory, for example in bbackupquery, which meant that the report file was written in the wrong place and couldn't be found by the test, causing a failure.
* Fix overlapped I/O in WinNamedPipeStream.Chris Wilson2014-12-28
| | | | Broken by previous changes to introduce overlapped I/O for writes.
* Whitespace and comment fixes.Chris Wilson2014-12-28
| | | | Improve correctness and reduce code duplication in bbackupctl.
* Improve debugging of named pipe operations and bbackupctl pipe interaction.Chris Wilson2014-12-28
|
* Add missing timeouts on command socket writes.Chris Wilson2014-12-28
|
* Add comment about reason for code duplication.Chris Wilson2014-12-26
| | | | | The mysterious case of the missing Write(const std::string&) in the night-time, or rather in subclasses of IOStream which declares it.
* Improve some exception messages in lib/raidfile.Chris Wilson2014-12-26
| | | | | Use the new macros to ensure that exceptions contain a message and filename, following the new standard format.
* Fix test failures caused by using plain stat() instead of emu_stat().Chris Wilson2014-12-26
| | | | | | | On Windows, plain stat() no longer handles slashes in filenames correctly (since upgrading MinGW? Or switching to 64-bit Windows?). We need to use POSIX fstat() for now in RaidFile, but we can still use the emu_stat, and in fact we should, to fix path translation.
* Fix test failures caused by store path ending with slash on Windows.Chris Wilson2014-12-26
|
* Add support for timeouts on named pipe writes, using overlapped I/O.Chris Wilson2014-12-26
|
* Fix warning about HAVE_RANDOM_DEVICE not being defined.Chris Wilson2014-12-26
|
* Fix MinGW64 compile error due to pointers being too large for uint32_t.Chris Wilson2014-12-26
|
* Fix more compile errors on MinGWChris Wilson2014-12-26
|
* Replace sprintf() with snprintf(), fixes compile warnings on OpenBSD.Chris Wilson2014-12-22
| | | | | And compile errors on recent MinGW.
* Make memleakfinder_setup_exit_report() take a std::string, for C++ style.Chris Wilson2014-12-22
|
* Replace Write(const char *) with Write(const std::string&).Chris Wilson2014-12-22
| | | | | This is better for C++ style and potential missing null termination.
* Fix compile error on OpenBSD due to invalid forward declarations of classes.Chris Wilson2014-12-22
| | | | | OpenBSD's compiler appears to be more sensitive than others.
* Add a TEST_LINE_OR macro to compare strings and execute a command if no equal.Chris Wilson2014-12-21
|
* Allow writing a std::string to any SocketStream.Chris Wilson2014-12-21
|
* Fix computation of fractional second part of ShortSleep().Chris Wilson2014-12-21
| | | | | | | Reduce precision in log messages from microseconds to milliseconds. Log the amount of time actually slept in ShortSleep().
* Reduce detail on logging box_time_ts from microseconds to milliseconds.Chris Wilson2014-12-21
| | | | | | There's not much point logging with higher precision when no normal platform will deliver it.
* Add logging for functions that trigger bbackupd using bbackupctl.Chris Wilson2014-12-21
|
* Improve comment explaining SocketStream::PollTimeout function.Chris Wilson2014-12-21
|
* Add a note about units of arguments to PollTimeout function().Chris Wilson2014-12-15
| | | | | Because they're not obvious and I wasted time trying to figure them out.
* Remove unused files.Chris Wilson2014-12-15
|
* Fix intercept tests on NetBSD.Chris Wilson2014-12-10
| | | | | Thanks to Jose Luis Rodriguez Garcia for the patch!
* Fix detection of filesystems without extended attribute support on NetBSD.Chris Wilson2014-12-06
| | | | | | | | | | | NetBSD (version 6) uses ENOTSUP as the errno code to indicate missing support for extended attribute in the filesystem. This appears to be at odds with other Unixes: https://mail-index.netbsd.org/tech-kern/2011/12/13/msg012185.html We need to detect and handle ENOTSUP to stop the backup daemon from killing itself while trying to read extended attributes from the first file in the backup set.
* Fix stupid typo on struct member names.Chris Wilson2014-12-06
|
* Add support for getsockopt(SO_PEERCRED) on OpenBSD 5.2.Chris Wilson2014-12-06
| | | | | | | | | | | OpenBSD requires different headers to be included, including a bug which makes it essential to include sys/param.h before sys/ucred.h, and gives the fields of struct ucred different names than Linux does. This fixes compilation on OpenBSD and allows the user connecting to a UNIX socket to be checked, increasing security of the command socket on this platform.
* Fix compile on platforms without execinfo.hChris Wilson2014-12-06
|
* The BackupErrorDelay configuration key should not be required.Chris Wilson2014-12-06
| | | | | | | | | | | | | | | | | | | | | It has a sensible default, and backwards compatibility is broken by requiring it. > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Differential Revision: https://reviews.freebsd.org/D### (*full* phabric URL needed). > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > MFH: Ports tree branch name. Request approval for merge. > Relnotes: Set to 'yes' for mention in release notes. > Security: Vulnerability reference (one per line) or description. > Sponsored by: If the change was sponsored by an organization. > Empty fields above will be automatically removed. M BackupDaemonConfigVerify.cpp
* Allow users to configure the delay before retry on backup errors.Chris Wilson2014-12-03
|
* Fix header guard, thanks to Clang for spotting it.Chris Wilson2014-12-01
|
* Generate configure script in qdbm directory.Chris Wilson2014-12-01
| | | | | | Now that we've removed it from version control, we need to build it from configure.in as part of bootstrapping Box Backup.