summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* 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.
* Include getopt.h instead of box_getopt.h.Chris Wilson2014-11-23
| | | | Fixes compile errors on Windows. Thanks to Kai Liebenau!
* Fix exception in bbackupd when no LogFile is configured.Chris Wilson2014-11-23
|
* Fix compile errors introduced by previous commit.Chris Wilson2014-11-23
| | | | | | Add a LogFileOverwrite option to allow configuring whether LogFile is overwritten or appended to. Overwriting happens at startup, and the start of each backup in bbackupd (via ResetLogFile()).
* Fix compile errors on Windows, thanks to Kai Liebenau for the patch.Chris Wilson2014-11-16
|
* Fix test failures caused by reference count database changes.Chris Wilson2014-11-16
|
* Add option to truncate log file at start of every backup.Chris Wilson2014-11-16
| | | | Prevents backup log files from becoming too large.
* Add cache invalidation checks to BackupStoreDirectory.Chris Wilson2014-11-16
| | | | | | | | | | Allows us to catch programming errors related to use of a cached reference to a directory after the cache may have been invalidated by requesting another directory from the cache, which could clear it. In DEBUG builds, the cache is no longer cleared, but any entries in it are invalidated, which is effectively a memory leak, but these builds should only be used for running tests, where it doesn't matter.
* Repair the refcount database while checking accounts for errors.Chris Wilson2014-10-31
| | | | | | | Normally this will be done by housekeeping anyway, so it's not that useful, but it's good to check for it in tests, especially when testing BackupStoreCheck's ability to repair bad things that happened to the store when they involve references.
* Refactor handling of exceptions in protocol server command executors.Chris Wilson2014-10-31
| | | | | | | | | | Add a standard method to Replyable that will be called if a recoverable exception (a BoxException) occurs, and can return a protocol Message to be sent to the client, such as an error code for various standard errors, or rethrow the exception. If you want something different, catch exceptions and return the desired reply yourself, or you'll get the default handling.