summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* 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)
* Fix getting files with uncertain size (over 2GB) from the store. FailureChris Wilson2007-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 (veryChris Wilson2007-04-28
| | | | | useful for debugging). (refs #3)
* Remove comments accidentally left in [1591]. (refs #3)Chris Wilson2007-04-28
|
* Make Daemon remember whether we're supposed to run in a single process,Chris Wilson2007-04-28
| | | | | or not. (refs #3)
* Use ReadLoggingStream to log progress of file uploads. (refs #3)Chris Wilson2007-04-28
|
* Add a stream which logs progress of reading data from another (child)Chris Wilson2007-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, whichChris Wilson2007-04-28
| | | | | causes syslog() to write nonsense for the program name. (refs #3)
* Fix inability to handle streams over 2GB properly. (refs #3)Chris Wilson2007-04-28
|
* Add a stream which provides a source of zero bytes of arbitrary size,Chris Wilson2007-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 shareChris Wilson2007-04-22
| | | | | config files for the unit tests (refs #3)
* Merge [1566] from chris/general:Chris Wilson2007-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)
* Compile fix for Win32, where no localtime_r is available and localtimeChris Wilson2007-04-22
| | | | | is thread safe. (refs #3)
* Display file and line where memory leak test failed. (refs #3)Chris Wilson2007-04-22
|
* Add -V option, which sets maximum verbosity in one go.Chris Wilson2007-04-22
| | | | | | | | | | | Add -T option, which adds timestamps to console logs. Add -t option, which enabled and sets the tag used on console logs. Add -k option, which keeps console open after forking. (refs #3)
* Add options to log timestamps, and a custom tag, with each message toChris Wilson2007-04-22
| | | | | | | | | the console, e.g.: 14:53:17 [bbackupd] Finished scan of local files (refs #3)
* Use logging framework to log stack traces from exceptions. (refs #3)Chris Wilson2007-04-22
|
* Use logging framework to log exceptions. (refs #3)Chris Wilson2007-04-22
|
* Declare global std::string variables that hold extra arguments forChris Wilson2007-04-22
| | | | | | | | | | | | | executables run in tests, to be implemented in a follow-up patch. ConvertPaths, LaunchServer and RunCommand all take std::string references instead of char*. Move safe_sleep from test/common to lib/server/Test.h so that all tests can use it. (refs #3)
* Compile fix, always include Test.h (refs #3)Chris Wilson2007-04-21
|
* Don't log errors or throw exceptions when we get ERROR_NO_DATA, which justChris Wilson2007-04-20
| | | | | | | | | | | | | | | means that the pipe is being closed. Treat it as a normal remote close (EOF) instead. Don't log an error if DisconnectNamedPipe tells us that the remote end already closed the pipe (ERROR_PIPE_NOT_CONNECTED). Treat ERR_PIPE_NOT_CONNECTED during pipe reads as EOF as well. Improve logging of pipe errors by including the error message. (refs #3, merges [1458] and [1463])