aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ufs_copy
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2015-08-17 14:48:02 +0800
committernobutaka <nobutaka@FreeBSD.org>2015-08-17 14:48:02 +0800
commit0983bea05cb3fd45ad3045d4b68038e45071cc5f (patch)
treee09f8d6864aeb64b42118b47f15157d7947d4141 /sysutils/ufs_copy
parentead8f84579744a242139996fa569235db93ede6d (diff)
downloadfreebsd-ports-gnome-0983bea05cb3fd45ad3045d4b68038e45071cc5f.tar.gz
freebsd-ports-gnome-0983bea05cb3fd45ad3045d4b68038e45071cc5f.tar.zst
freebsd-ports-gnome-0983bea05cb3fd45ad3045d4b68038e45071cc5f.zip
Fix core dump.
PR: 201490 Submitted by: ota@j.email.ne.jp
Diffstat (limited to 'sysutils/ufs_copy')
-rw-r--r--sysutils/ufs_copy/Makefile2
-rw-r--r--sysutils/ufs_copy/files/patch-ufs_copy.c12
2 files changed, 12 insertions, 2 deletions
diff --git a/sysutils/ufs_copy/Makefile b/sysutils/ufs_copy/Makefile
index 3528d79abe73..5788feef52c5 100644
--- a/sysutils/ufs_copy/Makefile
+++ b/sysutils/ufs_copy/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ufs_copy
PORTVERSION= 20060921
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://people.freebsd.org/~simokawa/ufs/
DISTNAME= ufs-${PORTVERSION}
diff --git a/sysutils/ufs_copy/files/patch-ufs_copy.c b/sysutils/ufs_copy/files/patch-ufs_copy.c
index 318f6818b2ba..2cec6e306ce6 100644
--- a/sysutils/ufs_copy/files/patch-ufs_copy.c
+++ b/sysutils/ufs_copy/files/patch-ufs_copy.c
@@ -1,5 +1,5 @@
--- ufs_copy.c.orig 2006-09-21 15:28:09.000000000 +0900
-+++ ufs_copy.c 2007-12-27 23:28:55.000000000 +0900
++++ ufs_copy.c 2015-08-17 11:45:07.797947000 +0900
@@ -111,9 +111,11 @@
main(int argc, char *argv[])
{
@@ -58,3 +58,13 @@
fprintf(stderr, "done\n");
else
fprintf(stderr, "failed\n");
+@@ -262,6 +289,9 @@
+ }
+ }
+ bcopy(&src, &dst, sizeof(dst));
++#if __FreeBSD_version >= 900011
++ dst.d_sbcsum = NULL;
++#endif
+ dst.d_name = dst_path;
+ dst.d_fd = open(dst_path, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR );
+ if (dst.d_fd < 0) {