[Box Backup] bbackupquery strange issue
Ben Summers
boxbackup@fluffy.co.uk
Wed, 10 May 2006 13:46:17 +0100
On 10 May 2006, at 13:31, Chris Wilson wrote:
> Hi,
>
>> I installed the client from the parcel that was compiled on the
>> server
>> box with CentOS 4.3.
>
> That's probably the problem. There are two different ways to get
> information about a file or directory. Box Backup picks one
> depending on whether it works or not on the machine where it was
> compiled. That way might or might not work on another machine. I
> guess that it does work on CentOS, and not on Fedora, which caused
> your CentOS build to fail on Fedora.
>
> Ben, perhaps if we detect HAVE_VALID_DIRENT_D_TYPE and compile with
> it enabled, then we should add a check that d_type is correct for
> the "." and ".." directories, and maybe for a known file as well?
Yes if it's going to break silently otherwise. Tracking Linux as a
target is a nightmare.
> Or else just use stat() on all platforms?
Doesn't sound the nicest plan ever.
Ben