Attempt to avoid a problem with --copy-unsafe-links where a symlink was
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index b0ac7a9..a68c62f 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -726,6 +726,14 @@ extern int xattrs_ndx;
 #define F_SUM(f) ((char*)OPT_EXTRA(f, START_BUMP(f) + HLINK_BUMP(f) \
                                    + SUM_EXTRA_CNT - 1))
 
+/* Present on all sender dirs when --copy-unsafe-links is enabled.
+ * See explanation at make_file. */
+#define F_DIR_PHYS_DEPTH(f) OPT_EXTRA(f, START_BUMP(f))->unum
+
+/* "phys_depth" arg to pass to make_file when not applicable
+ * (e.g., receiving side) */
+#define PHYS_DEPTH_N_A 0
+
 /* Some utility defines: */
 #define F_IS_ACTIVE(f) (f)->basename[0]
 #define F_IS_HLINKED(f) ((f)->flags & FLAG_HLINKED)