ports/sysutils/cpdup/files/patch-cpdup.c
Alex Dupre 6d3d6067e4 Update to 1.07 release.
Submitted by:	Oliver <olli@secnetix.de>
Approved by:	maintainer
2007-05-31 06:19:26 +00:00

17 lines
470 B
C

$FreeBSD$
--- cpdup.c.orig Thu Sep 21 06:09:28 2006
+++ cpdup.c Wed May 30 17:27:55 2007
@@ -463,6 +463,11 @@
if (hc_lstat(&SrcHost, spath, &st1) != 0)
return(0);
+#ifdef SF_SNAPSHOT
+ /* skip snapshot files because they're sparse and _huge_ */
+ if (st1.st_flags & SF_SNAPSHOT)
+ return(0);
+#endif
st2.st_mode = 0; /* in case lstat fails */
st2.st_flags = 0; /* in case lstat fails */
if (dpath && hc_lstat(&DstHost, dpath, &st2) == 0)