From owner-svn-ports-head@freebsd.org Mon Aug 17 06:48:03 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B6F8B9B9D5D; Mon, 17 Aug 2015 06:48:03 +0000 (UTC) (envelope-from nobutaka@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9D33A1E15; Mon, 17 Aug 2015 06:48:03 +0000 (UTC) (envelope-from nobutaka@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7H6m3dw027884; Mon, 17 Aug 2015 06:48:03 GMT (envelope-from nobutaka@FreeBSD.org) Received: (from nobutaka@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7H6m3Jo027882; Mon, 17 Aug 2015 06:48:03 GMT (envelope-from nobutaka@FreeBSD.org) Message-Id: <201508170648.t7H6m3Jo027882@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nobutaka set sender to nobutaka@FreeBSD.org using -f From: MANTANI Nobutaka Date: Mon, 17 Aug 2015 06:48:03 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2015 06:48:03 -0000 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) {