Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Use sigset() instead of signal() to ensure that SysV systems (like Solaris) | Chris Wilson | 2007-09-01 |
| | | | | | will not clear our signal handler after firing it. | ||
* | Convert most printf() and fprintf() calls to use logging framework | Chris Wilson | 2007-08-02 |
| | | | | | instead. (refs #3) | ||
* | Undo removal of syslog() header, still needed in this file. | Chris Wilson | 2007-08-02 |
| | |||
* | Replace almost all calls to syslog() with logging framework. (refs #3) | Chris Wilson | 2007-07-31 |
| | |||
* | Make Configuration take a std::string filename instead of a char array, | Chris Wilson | 2007-07-26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in C++ style. Add a function to get default config file paths at runtime, dependent on the location of the executable being run. Pass the config file name directly to Daemon::Main, instead of faking argv. No default raid file path at compile time on Windows, depends on executable location when run. Determine RaidFile path at runtime if not supplied in config file on Windows. Don't define default locations for config files at compile time on Windows, provide macros to determine them at runtime instead. Make FileHandleGuard take a std::string instead of a char array, C++ style. Determine config file location at runtime instead of hard-coding on Windows. Thanks to Paul MacKenzie, Per Thomsen, Pete Jalajas, Stuart Sanders, Dave Bamford and Gary for pushing me to do this. (fixes #12) Determine config file path at runtime. Call Daemon::Main with config file name instead of building fake argv. (refs #3, merges [1684] [1685] [1686] [1687] [1688] [1689] [1690] [1691] [1692]) | ||
* | Make Configuration take a std::string filename instead of a char array, | Chris Wilson | 2007-07-26 |
| | | | | | in C++ style. (refs #3, merges [1684]) | ||
* | Make RaidFileController::Initialise take a std::string instead of a | Chris Wilson | 2007-07-26 |
| | | | | | char array, in C++ style. (refs #3, merges [1683]) | ||
* | Work around the fact that we may have regex support without having | Chris Wilson | 2007-07-26 |
| | | | | | | | regex.h (e.g. from pcreposix.h/libpcreposix) and disabuse HAVE_REGEX_H, define and use HAVE_REGEX_SUPPORT instead, thanks Gary! (refs #3, merges [1677] [1678] [1679]) | ||
* | Disable some warnings under MSVC to reduce build noise, thanks Gary! | Chris Wilson | 2007-07-26 |
| | | | | | (refs #3, merges [1676]) | ||
* | Update copyright to 2007. (refs #3, merges [1670]) | Chris Wilson | 2007-07-26 |
| | |||
* | Define DEBUG_NEW in the same file whether or not BOX_MEMORY_LEAK_TESTING | Chris Wilson | 2007-07-26 |
| | | | | | is defined, thanks Gary. (refs #3, merges [1668]) | ||
* | We now have pcreposix.h instead of regex.h, at least if you follow the | Chris Wilson | 2007-07-26 |
| | | | | | MSVC build instructions. (refs #3, merges [1665]) | ||
* | Don't #include sys/time.h unless our platform has it, thanks Gary. | Chris Wilson | 2007-07-26 |
| | | | | | (refs #3, merges [1664]) | ||
* | Fix restoring to top-level directories (e.g. c:\test) (refs #3, | Chris Wilson | 2007-07-26 |
| | | | | | merges [1661]) | ||
* | Experimental fix for restore problem reported by Mikael Syska: | Chris Wilson | 2007-07-26 |
| | | | | | | | | | | | | query > restore Admin "c:\admin\" Failed to read file information: The parameter is incorrect. (87) Failed to get file information for 'c:' Failed to check existence for c:: Common OSFileError (Error accessing a file. Check permissions.) ERROR: Unknown restore result. (refs #3, merges [1659]) | ||
* | Typo compile fix. | Chris Wilson | 2007-07-26 |
| | |||
* | Add more debugging checks and messages for location setup error | Chris Wilson | 2007-07-26 |
| | | | | | | reported by Pete Jalajas (http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003668.html) | ||
* | Warn if an exception is thrown, with line number, as this shouldn't be | Chris Wilson | 2007-07-26 |
| | | | | | happening on production systems anyway. | ||
* | Use a signed int instead of char for getopt, thanks Martin. (refs #3) | Chris Wilson | 2007-07-05 |
| | |||
* | Make char signed to fix getopt usage on ARM and PowerPC, thanks to TBP and | Chris Wilson | 2007-07-04 |
| | | | | | | Reinhard Tartler (refs #3, see http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003614.html) | ||
* | More debugging. | Chris Wilson | 2007-07-03 |
| | |||
* | Hopefully work around buggy getopt implementation noted by TBP in | Chris Wilson | 2007-07-03 |
| | | | | | | http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003614.html (refs #3) | ||
* | Add extra debugging to help find out why getopt is behaving weirdly | Chris Wilson | 2007-06-30 |
| | | | | | | on debian etch (http://lists.warhead.org.uk/pipermail/boxbackup/2007-June/003603.html) | ||
* | Log reasons for failure to connect to a socket. | Chris Wilson | 2007-06-28 |
| | |||
* | Add a new -F option for daemons, which runs in the foreground but still | Chris Wilson | 2007-06-28 |
| | | | | | accepts multiple connections, unlike -D or SINGLEPROCESS. | ||
* | Get it right this time. | Chris Wilson | 2007-06-04 |
| | |||
* | Hopefully reset getopt in a way that's compatible with BSD and GLIBC, | Chris Wilson | 2007-06-04 |
| | | | | | thanks to Tobias Balle-Petersen for pointing out this bug. | ||
* | Add missing #include <errno.h>, thanks Tobias. | Chris Wilson | 2007-06-03 |
| | |||
* | Fix emulated chdir to work with relative paths and with bbackupquery's | Chris Wilson | 2007-05-09 |
| | | | | | | | | | "sh" command (which doesn't like UNC paths). Fix error messages by removing surplus newline kindly added by Windows. (refs #3, merges [1514] and [1569]) | ||
* | Add missing #include <errno.h>, thanks to Matt Brown (refs #3) | Chris Wilson | 2007-05-02 |
| | |||
* | Compile fix, thanks to Matt Brown (refs #3) | Chris Wilson | 2007-05-02 |
| | |||
* | Remove assertion that we are at the end of the stream when decoding | Chris Wilson | 2007-04-29 |
| | | | | | finishes. This is not true when decoding raw files on disk. (refs #3) | ||
* | Remove unwanted blank line. (refs #3) | Chris Wilson | 2007-04-29 |
| | |||
* | Make directories user-writable while restoring them, so that restoring | Chris Wilson | 2007-04-29 |
| | | | | | | read-only directories as a non-root user doesn't crash. Restore the correct permissions after restoring the directory's contents. (refs #3) | ||
* | Make directories user-writable while restoring them, so that restoring | Chris Wilson | 2007-04-29 |
| | | | | | | read-only directories as a non-root user doesn't crash. Restore the correct permissions after restoring the directory's contents. (refs #3) | ||
* | Initialise mSingleProcess flag to false (oops!) (refs #3) | Chris Wilson | 2007-04-29 |
| | |||
* | Fix rare memory leak. (refs #3, merges part of [1514]) | Chris Wilson | 2007-04-28 |
| | |||
* | Remove newline from end of banner text, since logging framework will add | Chris Wilson | 2007-04-28 |
| | | | | | it for us where necessary. (refs #3) | ||
* | Fix bbackupd choosing an invalid (too large) block size for large files | Chris Wilson | 2007-04-28 |
| | | | | | | | (over 2GB) which will cause compare to fail: when rBlockSizeOut == BACKUP_FILE_MAX_BLOCK_SIZE we would have proceeded around the loop one more time and doubled the block size again. (refs #2, refs #3) | ||
* | Fix getting files with uncertain size (over 2GB) from the store. Failure | Chris Wilson | 2007-04-28 |
| | | | | | | to drain the stream will leave the EOF byte in it, which breaks further communications with the store over the same connection. (refs #2, refs #3) | ||
* | Don't fork to handle requests when running as a single process (very | Chris Wilson | 2007-04-28 |
| | | | | | useful for debugging). (refs #3) | ||
* | Remove comments accidentally left in [1591]. (refs #3) | Chris Wilson | 2007-04-28 |
| | |||
* | Make Daemon remember whether we're supposed to run in a single process, | Chris Wilson | 2007-04-28 |
| | | | | | or not. (refs #3) | ||
* | Use ReadLoggingStream to log progress of file uploads. (refs #3) | Chris Wilson | 2007-04-28 |
| | |||
* | Add a stream which logs progress of reading data from another (child) | Chris Wilson | 2007-04-28 |
| | | | | | | stream, and estimated time of completion, useful for upload progress monitoring. (refs #3) | ||
* | Keep a copy of the program name, in case the original goes away, which | Chris Wilson | 2007-04-28 |
| | | | | | causes syslog() to write nonsense for the program name. (refs #3) | ||
* | Fix inability to handle streams over 2GB properly. (refs #3) | Chris Wilson | 2007-04-28 |
| | |||
* | Add a stream which provides a source of zero bytes of arbitrary size, | Chris Wilson | 2007-04-28 |
| | | | | | useful for testing support for files over 2GB. (refs #3) | ||
* | Ignore attempts to listen on a Unix socket on Win32, so that we can share | Chris Wilson | 2007-04-22 |
| | | | | | config files for the unit tests (refs #3) | ||
* | Merge [1566] from chris/general: | Chris Wilson | 2007-04-22 |
| | | | | | | | | | Use Sleep() instead of nanosleep again on win32 (lost in merge [1562]). Fix reference to pCommandLine which no longer exists after [1562]. Fix signed/unsigned comparison warning. (refs #3) |