pkgsrc/sysutils/boxbackup-client/patches/patch-ab
drochner 36c32626ac deal better with error return values of *xattr() functions -- the
"bbackupd" selftest does mostly succeed now on NetBSD-current wuth UFS1
(where xattrs are supported by the OS but not the filesystem)
2011-11-09 18:38:02 +00:00

18 lines
505 B
Text

$NetBSD: patch-ab,v 1.3 2011/11/09 18:38:02 drochner Exp $
don't fail if xattrs are not supported by the filesystem
--- test/bbackupd/testbbackupd.cpp.orig 2011-01-08 21:35:24.000000000 +0000
+++ test/bbackupd/testbbackupd.cpp
@@ -310,9 +310,9 @@ bool attrmatch(const char *f1, const cha
if(!readxattr_into_map(f1, xattr1)
|| !readxattr_into_map(f2, xattr2))
{
- return false;
+ /*return false*/;
}
- if(!(xattr1 == xattr2))
+ else if(!(xattr1 == xattr2))
{
return false;
}