ports/sysutils/cpdup/files/patch-cpdup.c
Volker Stolz e6120dcce1 Skip inodes with snapshot flag on (bump PORTREV)
PR:             ports/96252
Submitted by:	marck@
2006-04-25 15:52:08 +00:00

17 lines
409 B
C

$FreeBSD$
--- cpdup.c.orig
+++ cpdup.c
@@ -321,6 +321,11 @@
if (lstat(spath, &st1) != 0)
return(0);
+#ifdef SF_SNAPSHOT
+ /* skip snapshot files: we cannot handle files larger than file system */
+ 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 && lstat(dpath, &st2) == 0)