int has_extrameta(const char *path, enum cmd cmd, struct conf **confs) { #if defined(WIN32_VSS) return 1; #endif #if defined(HAVE_LINUX_OS) || \ defined(HAVE_FREEBSD_OS) || \ defined(HAVE_OPENBSD_OS) || \ defined(HAVE_NETBSD_OS) // FIX THIS: extra meta not supported in protocol2. if(get_e_protocol(confs[OPT_PROTOCOL])==PROTO_2) return 0; #ifdef HAVE_ACL if(has_acl(path, cmd)) return 1; #endif #endif #if defined(HAVE_LINUX_OS) || \ defined(HAVE_FREEBSD_OS) || \ defined(HAVE_OPENBSD_OS) || \ defined(HAVE_NETBSD_OS) #ifdef HAVE_XATTR if(has_xattr(path, cmd)) return 1; #endif #endif return 0; }
int has_extrameta(const char *path, char cmd) { #if defined(HAVE_LINUX_OS) || \ defined(HAVE_FREEBSD_OS) || \ defined(HAVE_OPENBSD_OS) || \ defined(HAVE_NETBSD_OS) #ifdef HAVE_ACL if(has_acl(path, cmd)) return 1; #endif #endif #if defined(HAVE_LINUX_OS) || \ defined(HAVE_FREEBSD_OS) || \ defined(HAVE_OPENBSD_OS) || \ defined(HAVE_NETBSD_OS) #ifdef HAVE_XATTR if(has_xattr(path, cmd)) return 1; #endif #endif return 0; }