Skip inodes with snapshot flag on (bump PORTREV)

PR:             ports/96252
Submitted by:	marck@
This commit is contained in:
Volker Stolz 2006-04-25 15:52:08 +00:00
parent 67c7391607
commit e6120dcce1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160442
2 changed files with 18 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= cpdup
PORTVERSION= 1.05
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://apollo.backplane.com/FreeBSDPorts/
#MASTER_SITE_SUBDIR= cp

View File

@ -0,0 +1,17 @@
$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)