summaryrefslogtreecommitdiff
path: root/ifuncs.h
diff options
context:
space:
mode:
Diffstat (limited to 'ifuncs.h')
-rw-r--r--ifuncs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ifuncs.h b/ifuncs.h
index 0fe900a3..8c128d58 100644
--- a/ifuncs.h
+++ b/ifuncs.h
@@ -66,3 +66,14 @@ d_name(struct dirent *di)
return di->d_name;
#endif
}
+
+static inline void
+init_stat_x(stat_x *sx_p)
+{
+#ifdef SUPPORT_ACLS
+ sx_p->acc_acl = sx_p->def_acl = NULL;
+#endif
+#ifdef SUPPORT_XATTRS
+ sx_p->xattr = NULL;
+#endif
+}