Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Reset read and write closed state of a socket after Open() and Attach(). | Chris Wilson | 2009-01-03 |
| | |||
* | Change use of int to identify a socket type to the proper enum. | Chris Wilson | 2009-01-03 |
| | |||
* | Compile and config verify fixes for HTTP server code. | Chris Wilson | 2009-01-03 |
| | |||
* | Copy HTTP server into Box, for use with S3 testing. | Chris Wilson | 2009-01-03 |
| | |||
* | Add a function to return a native error message as a string. | Chris Wilson | 2008-12-30 |
| | |||
* | Change ConvertTo/FromUtf8 to take a std::string instead of a const char | Chris Wilson | 2008-12-30 |
| | | | | | *, for convenience and C++ style. | ||
* | Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as | Chris Wilson | 2008-12-30 |
| | | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve. | ||
* | Allow reinitialising the RaidFileController by removing any existing | Chris Wilson | 2008-12-26 |
| | | | | | disc sets before adding new ones. | ||
* | Include <string> header in all exception classes, as it's required by | Chris Wilson | 2008-12-08 |
| | | | | | exceptions that can have a message assigned in their constructors. | ||
* | Only use replacement BSD getopt on Windows. | Chris Wilson | 2008-12-08 |
| | |||
* | Add BOX_LOG_NATIVE_ERROR and BOX_LOG_NATIVE_WARNING macros, which call | Chris Wilson | 2008-12-05 |
| | | | | | | | | | BOX_LOG_SYS_* or BOX_LOG_WIN_* depending on platform, as this is a common reason for #ifdefs elsewhere in the code. Add BOX_LOG_SOCKET_ERROR macro to log socket errors with the type, name and port of the socket that suffered the error. | ||
* | Allow exceptions to contain a message string. | Chris Wilson | 2008-12-05 |
| | |||
* | Reformat ASSERT macro for readability. | Chris Wilson | 2008-12-05 |
| | | | | | | | | Reformat THROW_EXCEPTION macro to avoid overlong lines. Add THROW_EXCEPTION_MESSAGE macro to allow throwing an exception with a message, such as the file name that caused the exception. | ||
* | Grammar fix in SSL error message when SSL library initialisation fails. | Chris Wilson | 2008-12-05 |
| | |||
* | Fix the use of an unreasonably short type as the temporary storage | Chris Wilson | 2008-12-01 |
| | | | | | | | | for inode numbers on Windows, resulting in all inode numbers being coerced into 2^16 space and many duplicates on systems with large numbers of files being backed up, possibly resulting in store corruption due to unwanted file rename operations. | ||
* | Fix support for O_APPEND on files opened with openfile() on Windows. | Chris Wilson | 2008-11-30 |
| | |||
* | Compile fix and log the error number recorded by winerrno, not | Chris Wilson | 2008-11-30 |
| | | | | | the "last" error, whatever that was. | ||
* | Log the Windows error code if openfile() fails on Windows, as | Chris Wilson | 2008-11-30 |
| | | | | | | the default strerror() seems borked and reports EBUSY (file in use) as"Resource device". | ||
* | openfile() stores its Windows error code (from GetLastError() or | Chris Wilson | 2008-11-30 |
| | | | | | synthetic) in winerrno, to enable better error handling outside. | ||
* | Cygwin/MinGW getopt no longer seems to have optreset, so now would be | Chris Wilson | 2008-11-30 |
| | | | | | the time to start using that implementation we stole from BSD. | ||
* | Fix typo in variable name. | Chris Wilson | 2008-11-15 |
| | |||
* | Use the same ostringstream formatting for protocol logging to file | Chris Wilson | 2008-10-29 |
| | | | | | | that we use for standard logging, to fix 64bit platform warnings reported by Matt Brown. | ||
* | Silence warnings from openbsd gcc by using strncpy instead of strcpy. | Chris Wilson | 2008-10-26 |
| | |||
* | Check whether HAVE_UCRED_H is defined, not whether its value is 1. | Chris Wilson | 2008-10-24 |
| | |||
* | Add missing #include <errno.h>, needed by FreeBSD and Solaris at least. | Chris Wilson | 2008-10-24 |
| | |||
* | Report the filename that failed when various file attribute syscalls | Chris Wilson | 2008-10-21 |
| | | | | | | | fail, for example setting, listing or reading extended attributes, or creating or changing the owner of a symlink. Thanks to Torsten for noticing that the filename was not reported in these cases. | ||
* | Fix compile errors on Debian Lenny, reported by Torsten. | Chris Wilson | 2008-10-17 |
| | |||
* | Ensure that _FILE_OFFSET_BITS is defined before testing its value. | Chris Wilson | 2008-10-11 |
| | | | | | | Move definition of DEFINE_ONLY_OPEN64 into intercept.cpp which is the only place that should use it. | ||
* | FreeBSD is very strict about vararg types and aborts at runtime if | Chris Wilson | 2008-10-11 |
| | | | | | | the type passed to va_arg() has been promoted, so let's keep it happy by using ints instead. | ||
* | Don't blindly use an undefined symbol in #if. | Chris Wilson | 2008-10-11 |
| | |||
* | Use getpeerucred() to identify connecting socket clients on Solaris, | Chris Wilson | 2008-10-11 |
| | | | | | | | | and silence warnings that the peer cannot be identified on this platform. Remove another use of uname -o which doesn't work on Solaris. | ||
* | Fix spurious memory leak warnings on Solaris when using Sun Studio | Chris Wilson | 2008-10-11 |
| | | | | | compiler. | ||
* | Fix intercept compile problem on Solaris, and hopefully on other platforms | Chris Wilson | 2008-10-11 |
| | | | | | with large file support. | ||
* | Use Windows Crypto API to seed the random number generator, and remove | Chris Wilson | 2008-10-08 |
| | | | | | warning that it hasn't been seeded on Windows. | ||
* | Remove Win32 command socket thread, as it has caused too much trouble. | Chris Wilson | 2008-10-03 |
| | | | | | | | | | | | Handle command socket on Win32 the same as all other platforms, removing #ifdefs from BackupDaemon. Will replace this thread with regular but not excessive command socket polling using timers in future. Change error messages when command socket comms fail to make them clearer. | ||
* | Remove -K option which now does nothing on Windows. | Chris Wilson | 2008-10-03 |
| | | | | | Add -Q option which disables all logging instead. | ||
* | Utility classes to be used by new Windows named pipe framework. | Chris Wilson | 2008-10-03 |
| | |||
* | Spacing and additional stream header byte logging. | Chris Wilson | 2008-10-03 |
| | |||
* | More debugging, log type of stream received and fix logging of header byte. | Chris Wilson | 2008-10-03 |
| | |||
* | Additional debugging for protocol stream deadlock reported by | Chris Wilson | 2008-09-30 |
| | | | | | Matt Brown. | ||
* | Add file logging support (LogFile and LogFileLevel config options). | Chris Wilson | 2008-09-26 |
| | | | | | | | | | | | | | | | | Ensure that backup-finish is always called, and add a new event, backup-ok, which is called just before backup-finish when the backup run was successful. Keep track of the last backup status notification sent (excluding backup-start and backup-finish) and send a notification whenever it changes. Add a new boolean option, NotifyAlways, to override that check and always send notifications to the NotifyScript after every backup run, for notify scripts which do their own state tracking or otherwise require notification on every event. | ||
* | Fix compilation of open64() intercept. | Chris Wilson | 2008-09-26 |
| | |||
* | Remove #ifdef WIN32 as we now define O_BINARY to 0 on Unixes, so | Chris Wilson | 2008-09-26 |
| | | | | | the same code can be used for both. | ||
* | Log reason for failing to write to a file. | Chris Wilson | 2008-09-26 |
| | |||
* | Add file logger class. | Chris Wilson | 2008-09-26 |
| | |||
* | Replace timer name when assigning from another timer. | Chris Wilson | 2008-09-26 |
| | |||
* | Log reason for any waitpid() failure. | Chris Wilson | 2008-09-26 |
| | |||
* | Set console and syslog logging levels rather than global logging level, | Chris Wilson | 2008-09-26 |
| | | | | | as we may want to do something different when logging to a file. | ||
* | Use named timer for MaximumDiffingTime. | Chris Wilson | 2008-09-26 |
| | |||
* | FIx [2285] properly for Windows. | Chris Wilson | 2008-09-14 |
| |