| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Look for libraries in the right directory, and pass the right --host
option to the configure script.
|
|
|
|
| |
MinGW compile now needs --host.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Thanks to Kai Liebenau for spotting it and submitting patches. I don't see
any need to actually collect link_st (using lstat) any more, because if the
location root is a symlink then we should just backup everything inside its
destination without question, and if it's not, comparing stat(parent) and
stat(child) will detect the difference, so no need to use lstat(parent)
instead.
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
BSD tar seems to not like additional options after the first block.
|
|
|
|
|
|
| |
Test now passes reliably with any verbosity level on NetBSD, despite
the really slow compares.
|
|
|
|
|
|
|
|
| |
Helps to debug tests that depend on subsecond timing.
Log time to wait on command socket in fractional seconds instead of raw
box_time_t.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Running a compare takes far too long on NetBSD (3 seconds) and this was
messing up the timing of the test.
|
| |
|
| |
|
|
|
|
|
|
| |
Logging anything while checking for open file descriptors can reopen the
syslog connection that was closed before, resulting in a false positive.
|
|
|
|
|
|
|
|
| |
fail.
We didn't take into account the time taken to perform a compare as part of
the test, when deciding how long to wait for bbackupd to recover.
|
| |
|
|
|
|
|
| |
Move most of the code for handling individual directory entries into a
separate method, SyncDirectoryEntry.
|
| |
|
| |
|
|
|
|
|
| |
Thanks to Jose Luis Rodriguez Garcia for the patch!
|
| |
|
|
|
|
| |
Hopefully will help anyone trying to debug this test in future.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Refactor code to select which make is used for readability.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The shorter delay on error, introduced recently to speed up test runs,
combined with a guess about how long bbackupd would take to run a backup
and discover that the client store marker had changed, meant that sometimes
the daemon would have discovered the problem, aborted, waited and run again
while the test was waiting for the first failure.
Synchronising with the running daemon using bbackupctl wait_for_sync_end
should make the test timing accurate enough. We also tighten the recovery
timing checks to make sure that it's doing what it should.
|
|
|
|
|
| |
We're using an internal daemon here, so we don't want an external one as well.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Older versions of GNU tar fail to set the timestamps on symlinks, which makes
them appear too recent/new to be backed up immediately, causing
test_bbackupd_uploads_files() for example to fail. Fixed by restoring the
timestamps manually after extracting the fixture archive.
For more details about the issue in tar, please see:
http://lists.gnu.org/archive/html/bug-tar/2009-08/msg00007.html
http://git.savannah.gnu.org/cgit/tar.git/plain/NEWS?id=release_1_24
This resulted in symlinks in fixture test files
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|