Give a meaningful error message when we fail to write to a batch file.
[rsync/rsync.git] / ifuncs.h
index 0fe900a..8c128d5 100644 (file)
--- 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
+}