From ed349f00c5523555735ceeb381c24ea064dff1a8 Mon Sep 17 00:00:00 2001 From: is Date: Tue, 15 Nov 2011 13:04:46 +0000 Subject: replace mktemp() by mkstemp(), updating net/icsi-finger to 1.0.27nb6 --- net/icsi-finger/Makefile | 4 ++-- net/icsi-finger/distinfo | 4 ++-- net/icsi-finger/patches/patch-ak | 23 ++++++++++++++++++++++- 3 files changed, 26 insertions(+), 5 deletions(-) (limited to 'net/icsi-finger') diff --git a/net/icsi-finger/Makefile b/net/icsi-finger/Makefile index c8243b2f77c..e81db3d3051 100644 --- a/net/icsi-finger/Makefile +++ b/net/icsi-finger/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.17 2011/11/10 09:59:53 is Exp $ +# $NetBSD: Makefile,v 1.18 2011/11/15 13:04:46 is Exp $ # DISTNAME= icsi-finger-1.0.27 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= net MASTER_SITES= ftp://ftp.icsi.berkeley.edu/pub/ai/stolcke/software/ EXTRACT_SUFX= .tar.Z diff --git a/net/icsi-finger/distinfo b/net/icsi-finger/distinfo index d25940eee12..8873c797dbb 100644 --- a/net/icsi-finger/distinfo +++ b/net/icsi-finger/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2011/11/15 00:11:06 dholland Exp $ +$NetBSD: distinfo,v 1.12 2011/11/15 13:04:46 is Exp $ SHA1 (icsi-finger-1.0.27.tar.Z) = 41f03c42269a402169000a6b08ba8c6330256861 RMD160 (icsi-finger-1.0.27.tar.Z) = 92839362b6d4b1893958ca0909654f070e734aa4 @@ -12,7 +12,7 @@ SHA1 (patch-af) = 96d691992eecbf08118a924218570325a52603b1 SHA1 (patch-ah) = d61e893ce11a3957bbe138abc9a247b0d4b51a0e SHA1 (patch-ai) = 01b48ecef2c1fe191780c9a8dee61f2951ee9c10 SHA1 (patch-aj) = 53adee387e703fcff2b8f5dba4ae593712acb2ad -SHA1 (patch-ak) = e34c9b4e4e24295c4d60e7628ef90d2be7fa4c13 +SHA1 (patch-ak) = df08b988feebd818b2ebebe0756feb0463dfffda SHA1 (patch-al) = 1abcd4a364d66b19e30e38422f3fda5a9cc233b3 SHA1 (patch-am) = 50b7cc7eaa30eaab2a26a849a875322c5344a74a SHA1 (patch-an) = c5e4a49e7abd2b14513be38d3d06280117730e09 diff --git a/net/icsi-finger/patches/patch-ak b/net/icsi-finger/patches/patch-ak index 16d7eb68cf8..6b6d465331d 100644 --- a/net/icsi-finger/patches/patch-ak +++ b/net/icsi-finger/patches/patch-ak @@ -1,8 +1,9 @@ -$NetBSD: patch-ak,v 1.2 2011/11/15 00:11:07 dholland Exp $ +$NetBSD: patch-ak,v 1.3 2011/11/15 13:04:46 is Exp $ - use standard includes - 64-bit time_t fixes - remove union wait +- replace mktemp() by mkstemp() --- src/in.fingerd.c.orig 1996-01-10 19:26:24.000000000 +0000 +++ src/in.fingerd.c @@ -55,3 +56,23 @@ $NetBSD: patch-ak,v 1.2 2011/11/15 00:11:07 dholland Exp $ if (access (script, X_OK) >= 0) { +@@ -1528,6 +1519,7 @@ maybe_user_script (entry, stream, packet + FILE *long_output; + int result; + extern char *mktemp(); ++ int temp_fd; + + #ifndef FINGERRC + return (0); +@@ -1571,8 +1563,9 @@ maybe_user_script (entry, stream, packet + /* Collect regular long finger output in file */ + strcpy (temp_file, TEMPFILE); + +- if (!mktemp (temp_file) || +- !(long_output = fopen (temp_file, "w+"))) ++ temp_fd = mkstemp (temp_file); ++ if (temp_fd < 0 || ++ !(long_output = fdopen (temp_fd, "w+"))) + { + file_error (WARNING, temp_file); + free (user_script); -- cgit v1.2.3