Package: kdelibs Severity: important Version: 4:3.5.3-1 Tags: patch
Hi, the current version fails to build on GNU/kFreeBSD. It needs small tweak in recently added POSIX ACL support. Please find attached patch with it. It would also be nice if you can ask upstream to include this change. Thanks in advance Petr
--- kio/kfile/kpropertiesdialog.cpp.ORIG 2006-07-07 13:05:00.000000000 +0200 +++ kio/kfile/kpropertiesdialog.cpp 2006-07-07 13:05:53.000000000 +0200 @@ -1860,7 +1860,14 @@ fileSystemSupportsACLs = ( statfs( pathCString.data(), &buf ) == 0 ) && ( buf.f_flags & MNT_ACLS ); #else fileSystemSupportsACLs = - getxattr( pathCString.data(), "system.posix_acl_access", NULL, 0 ) >= 0 || errno == ENODATA; + getxattr( pathCString.data(), "system.posix_acl_access", NULL, 0 ) >= 0 +#ifdef ENODATA + || (errno == ENODATA) +#endif +#ifdef ENOATTR + || (errno == ENOATTR) +#endif + ; #endif return fileSystemSupportsACLs; }