Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2015 06:48:03 +0000 (UTC)
From:      MANTANI Nobutaka <nobutaka@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r394437 - in head/sysutils/ufs_copy: . files
Message-ID:  <201508170648.t7H6m3Jo027882@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nobutaka
Date: Mon Aug 17 06:48:02 2015
New Revision: 394437
URL: https://svnweb.freebsd.org/changeset/ports/394437

Log:
  Fix core dump.
  
  PR:		201490
  Submitted by:	ota@j.email.ne.jp

Modified:
  head/sysutils/ufs_copy/Makefile
  head/sysutils/ufs_copy/files/patch-ufs_copy.c

Modified: head/sysutils/ufs_copy/Makefile
==============================================================================
--- head/sysutils/ufs_copy/Makefile	Mon Aug 17 06:38:04 2015	(r394436)
+++ head/sysutils/ufs_copy/Makefile	Mon Aug 17 06:48:02 2015	(r394437)
@@ -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}

Modified: head/sysutils/ufs_copy/files/patch-ufs_copy.c
==============================================================================
--- head/sysutils/ufs_copy/files/patch-ufs_copy.c	Mon Aug 17 06:38:04 2015	(r394436)
+++ head/sysutils/ufs_copy/files/patch-ufs_copy.c	Mon Aug 17 06:48:02 2015	(r394437)
@@ -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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508170648.t7H6m3Jo027882>