From owner-svn-ports-head@freebsd.org Sun Sep 1 16:42:06 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BF04BDE6A8; Sun, 1 Sep 2019 16:42:06 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46LzWy4jCHz4Vty; Sun, 1 Sep 2019 16:42:06 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6BB8E473D; Sun, 1 Sep 2019 16:42:06 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x81Gg62O013847; Sun, 1 Sep 2019 16:42:06 GMT (envelope-from lwhsu@FreeBSD.org) Received: (from lwhsu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x81Gg6BV013845; Sun, 1 Sep 2019 16:42:06 GMT (envelope-from lwhsu@FreeBSD.org) Message-Id: <201909011642.x81Gg6BV013845@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lwhsu set sender to lwhsu@FreeBSD.org using -f From: Li-Wen Hsu Date: Sun, 1 Sep 2019 16:42:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r510708 - in head/korean/hpscat: . files X-SVN-Group: ports-head X-SVN-Commit-Author: lwhsu X-SVN-Commit-Paths: in head/korean/hpscat: . files X-SVN-Commit-Revision: 510708 X-SVN-Commit-Repository: ports 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.29 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: Sun, 01 Sep 2019 16:42:06 -0000 Author: lwhsu Date: Sun Sep 1 16:42:05 2019 New Revision: 510708 URL: https://svnweb.freebsd.org/changeset/ports/510708 Log: Add a patch to remove use of gets(3) PR: 238690 Submitted by: Walter Schwarzenfeld Reported by: emaste Sponsored by: The FreeBSD Foundation Modified: head/korean/hpscat/Makefile head/korean/hpscat/files/patch-hpscat.c Modified: head/korean/hpscat/Makefile ============================================================================== --- head/korean/hpscat/Makefile Sun Sep 1 16:40:06 2019 (r510707) +++ head/korean/hpscat/Makefile Sun Sep 1 16:42:05 2019 (r510708) @@ -3,7 +3,7 @@ PORTNAME= hpscat PORTVERSION= 1.3.1 -PORTEPOCH= 1 +PORTEPOCH= 2 CATEGORIES= korean print MASTER_SITES= http://ftp.kaist.ac.kr/hangul/print/hpscat/ \ ftp://ftp.kaist.ac.kr/hangul/print/hpscat/ \ @@ -17,7 +17,7 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ked.tar.gz:ked MAINTAINER= ports@FreeBSD.org COMMENT= Hangul Text Printing Utility -RUN_DEPENDS= hcode:korean/hcode +RUN_DEPENDS= hcode:korean/hcode FONTDIR= ${PREFIX}/${FONTDIR_REL} FONTDIR_REL= share/fonts/ked-${PORTNAME} Modified: head/korean/hpscat/files/patch-hpscat.c ============================================================================== --- head/korean/hpscat/files/patch-hpscat.c Sun Sep 1 16:40:06 2019 (r510707) +++ head/korean/hpscat/files/patch-hpscat.c Sun Sep 1 16:42:05 2019 (r510708) @@ -1,38 +1,11 @@ ---- hpscat.c.orig 1995-11-23 07:46:12.000000000 -0500 -+++ hpscat.c 2013-06-12 17:10:59.000000000 -0400 -@@ -12,13 +12,14 @@ - bool cheat; - FILE *fp, *ofp; - -+static int open_outfile(char *); -+ - /**************** - main routine - ****************/ - --main(ac,av) -- int ac; -- char *av[]; -+int -+main(int ac, char *av[]) - { - int i; - extern void showfile PROT((char *)); -@@ -53,13 +54,13 @@ - exit(0); - } - --int --open_outfile(s) /* returns -1 if can't write */ -- char *s; -+static int -+open_outfile(char *s) /* returns -1 if can't write */ - { - char ans[80], buf[256]; - sprintf(buf,"%s.ps", s); -- if(ofp=fopen(buf,"r")) { /* file exists */ -+ ofp=fopen(buf,"r"); -+ if(ofp) { /* file exists */ +--- hpscat.c.orig 2019-08-03 11:25:44 UTC ++++ hpscat.c +@@ -62,7 +62,7 @@ open_outfile(s) /* returns -1 if can + if(ofp=fopen(buf,"r")) { /* file exists */ fclose(ofp); fprintf(stderr,"output file %s exists...overwrite? ", buf); - gets(ans); +- gets(ans); ++ fgets(buf,256,ans); + if(ans[0]=='y') + unlink(buf); + else