From e6120dcce12e435a3ea249bf2749bb7dc8b8a750 Mon Sep 17 00:00:00 2001 From: Volker Stolz Date: Tue, 25 Apr 2006 15:52:08 +0000 Subject: [PATCH] Skip inodes with snapshot flag on (bump PORTREV) PR: ports/96252 Submitted by: marck@ --- sysutils/cpdup/Makefile | 1 + sysutils/cpdup/files/patch-cpdup.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 sysutils/cpdup/files/patch-cpdup.c diff --git a/sysutils/cpdup/Makefile b/sysutils/cpdup/Makefile index 4f1e7159d047..6f9dd82539de 100644 --- a/sysutils/cpdup/Makefile +++ b/sysutils/cpdup/Makefile @@ -7,6 +7,7 @@ PORTNAME= cpdup PORTVERSION= 1.05 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://apollo.backplane.com/FreeBSDPorts/ #MASTER_SITE_SUBDIR= cp diff --git a/sysutils/cpdup/files/patch-cpdup.c b/sysutils/cpdup/files/patch-cpdup.c new file mode 100644 index 000000000000..aa5c1fca53ea --- /dev/null +++ b/sysutils/cpdup/files/patch-cpdup.c @@ -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)