Skip inodes with snapshot flag on (bump PORTREV)
PR: ports/96252 Submitted by: marck@
This commit is contained in:
parent
67c7391607
commit
e6120dcce1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160442
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= cpdup
|
||||
PORTVERSION= 1.05
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://apollo.backplane.com/FreeBSDPorts/
|
||||
#MASTER_SITE_SUBDIR= cp
|
||||
|
17
sysutils/cpdup/files/patch-cpdup.c
Normal file
17
sysutils/cpdup/files/patch-cpdup.c
Normal 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)
|
Loading…
Reference in New Issue
Block a user