| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
Allows Archive to be used safely on network streams.
|
|
|
|
|
|
| |
The call to decrement the refcount was in an ASSERT macro, so compiled out in
release mode.
|
| |
|
| |
|
|
|
|
|
| |
Should make the Travis logs shorter and more readable.
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
| |
Work in UTC inside Box Backup, not local time.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Broken by previous changes to introduce overlapped I/O for writes.
|
|
|
|
| |
Improve correctness and reduce code duplication in bbackupctl.
|
| |
|
| |
|
|
|
|
|
| |
The mysterious case of the missing Write(const std::string&) in the
night-time, or rather in subclasses of IOStream which declares it.
|
|
|
|
|
| |
Use the new macros to ensure that exceptions contain a message and filename,
following the new standard format.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
And compile errors on recent MinGW.
|
| |
|
|
|
|
|
| |
This is better for C++ style and potential missing null termination.
|
|
|
|
|
| |
OpenBSD's compiler appears to be more sensitive than others.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Reduce precision in log messages from microseconds to milliseconds.
Log the amount of time actually slept in ShortSleep().
|
|
|
|
|
|
| |
There's not much point logging with higher precision when no normal platform
will deliver it.
|
| |
|
| |
|
|
|
|
|
| |
Because they're not obvious and I wasted time trying to figure them out.
|
| |
|
|
|
|
|
| |
Thanks to Jose Luis Rodriguez Garcia for the patch!
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
| |
Now that we've removed it from version control, we need to build it from
configure.in as part of bootstrapping Box Backup.
|
|
|
|
| |
Fixes compile errors on Windows. Thanks to Kai Liebenau!
|
| |
|