summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* Fix double backslashesChris Wilson2007-10-08
|
* Revert to decimal properly, and also after logging an Object ID.Chris Wilson2007-10-08
|
* Fix wrong comments, thanks to Nestor Arocha Rodriguez.Chris Wilson2007-10-08
|
* Log the name of missing configuration keys before throwing exception.Chris Wilson2007-10-08
|
* Revert from hex to decimal default format after logging an account number.Chris Wilson2007-10-08
|
* Allow configuration of the time to delete redundant store locations.Chris Wilson2007-10-08
|
* Compile fix.Chris Wilson2007-09-23
|
* Fix compiler warning. (merges [1820], [1821])Chris Wilson2007-09-07
|
* No need to print syslog() messages any more, now that we have a loggingChris Wilson2007-09-07
| | | | | framework. (merges [1814])
* Win32 compile fix (logging framework abuse). (merges [1810])Chris Wilson2007-09-07
|
* Format account number properly (8 hex digits).Chris Wilson2007-09-01
|
* Use sigset() instead of signal() to ensure that SysV systems (like Solaris)Chris Wilson2007-09-01
| | | | | will not clear our signal handler after firing it.
* Convert most printf() and fprintf() calls to use logging frameworkChris Wilson2007-08-02
| | | | | instead. (refs #3)
* Undo removal of syslog() header, still needed in this file.Chris Wilson2007-08-02
|
* Replace almost all calls to syslog() with logging framework. (refs #3)Chris Wilson2007-07-31
|
* Make Configuration take a std::string filename instead of a char array,Chris Wilson2007-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 Wilson2007-07-26
| | | | | in C++ style. (refs #3, merges [1684])
* Make RaidFileController::Initialise take a std::string instead of aChris Wilson2007-07-26
| | | | | char array, in C++ style. (refs #3, merges [1683])
* Work around the fact that we may have regex support without havingChris Wilson2007-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 Wilson2007-07-26
| | | | | (refs #3, merges [1676])
* Update copyright to 2007. (refs #3, merges [1670])Chris Wilson2007-07-26
|
* Define DEBUG_NEW in the same file whether or not BOX_MEMORY_LEAK_TESTINGChris Wilson2007-07-26
| | | | | is defined, thanks Gary. (refs #3, merges [1668])
* We now have pcreposix.h instead of regex.h, at least if you follow theChris Wilson2007-07-26
| | | | | MSVC build instructions. (refs #3, merges [1665])
* Don't #include sys/time.h unless our platform has it, thanks Gary.Chris Wilson2007-07-26
| | | | | (refs #3, merges [1664])
* Fix restoring to top-level directories (e.g. c:\test) (refs #3,Chris Wilson2007-07-26
| | | | | merges [1661])
* Experimental fix for restore problem reported by Mikael Syska:Chris Wilson2007-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 Wilson2007-07-26
|
* Add more debugging checks and messages for location setup errorChris Wilson2007-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 beChris Wilson2007-07-26
| | | | | happening on production systems anyway.
* Use a signed int instead of char for getopt, thanks Martin. (refs #3)Chris Wilson2007-07-05
|
* Make char signed to fix getopt usage on ARM and PowerPC, thanks to TBP andChris Wilson2007-07-04
| | | | | | Reinhard Tartler (refs #3, see http://lists.warhead.org.uk/pipermail/boxbackup/2007-July/003614.html)
* More debugging.Chris Wilson2007-07-03
|
* Hopefully work around buggy getopt implementation noted by TBP inChris Wilson2007-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 weirdlyChris Wilson2007-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 Wilson2007-06-28
|
* Add a new -F option for daemons, which runs in the foreground but stillChris Wilson2007-06-28
| | | | | accepts multiple connections, unlike -D or SINGLEPROCESS.
* Get it right this time.Chris Wilson2007-06-04
|
* Hopefully reset getopt in a way that's compatible with BSD and GLIBC,Chris Wilson2007-06-04
| | | | | thanks to Tobias Balle-Petersen for pointing out this bug.
* Add missing #include <errno.h>, thanks Tobias.Chris Wilson2007-06-03
|
* Fix emulated chdir to work with relative paths and with bbackupquery'sChris Wilson2007-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 Wilson2007-05-02
|
* Compile fix, thanks to Matt Brown (refs #3)Chris Wilson2007-05-02
|
* Remove assertion that we are at the end of the stream when decodingChris Wilson2007-04-29
| | | | | finishes. This is not true when decoding raw files on disk. (refs #3)
* Remove unwanted blank line. (refs #3)Chris Wilson2007-04-29
|
* Make directories user-writable while restoring them, so that restoringChris Wilson2007-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 restoringChris Wilson2007-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 Wilson2007-04-29
|
* Fix rare memory leak. (refs #3, merges part of [1514])Chris Wilson2007-04-28
|
* Remove newline from end of banner text, since logging framework will addChris Wilson2007-04-28
| | | | | it for us where necessary. (refs #3)
* Fix bbackupd choosing an invalid (too large) block size for large filesChris Wilson2007-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)