From bc22cb5799ac41a6bf209aaa1e04fa20d09eb5e7 Mon Sep 17 00:00:00 2001 From: skrll Date: Wed, 18 Feb 2004 07:55:51 +0000 Subject: Pull in the fix for the symlink vulnerability. --- devel/libtool/Makefile.common | 4 ++-- devel/libtool/distinfo | 4 ++-- devel/libtool/patches/patch-ac | 18 ++++++++++++++++-- 3 files changed, 20 insertions(+), 6 deletions(-) (limited to 'devel/libtool') diff --git a/devel/libtool/Makefile.common b/devel/libtool/Makefile.common index ac6f7e65372..8b65bfc7f0b 100644 --- a/devel/libtool/Makefile.common +++ b/devel/libtool/Makefile.common @@ -1,8 +1,8 @@ -# $NetBSD: Makefile.common,v 1.45 2004/02/14 15:29:15 jlam Exp $ +# $NetBSD: Makefile.common,v 1.46 2004/02/18 07:55:51 skrll Exp $ # DISTNAME= libtool-1.5.2 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= devel pkgtools MASTER_SITES= ${MASTER_SITE_GNU:=libtool/} diff --git a/devel/libtool/distinfo b/devel/libtool/distinfo index 2e16cc13bbe..37c8be26a09 100644 --- a/devel/libtool/distinfo +++ b/devel/libtool/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.35 2004/02/08 11:21:58 skrll Exp $ +$NetBSD: distinfo,v 1.36 2004/02/18 07:55:51 skrll Exp $ SHA1 (libtool-1.5.2.tar.gz) = d6f1e8fb544d71b3c88fb959521b34b9b6290260 Size (libtool-1.5.2.tar.gz) = 2653072 bytes SHA1 (patch-aa) = 173b8f40ebb067e3bcea798b87e822a445d5688e SHA1 (patch-ab) = 89875726d4952299cb7dda046697ba5393546f5e -SHA1 (patch-ac) = 089536834faa3011bf2086b0ef15245b01a88eb9 +SHA1 (patch-ac) = b09fb38a59875a60bb51c9fb487e940521a71715 SHA1 (patch-ad) = e2d7a160b2b673346309996b99c423f6b927d1df diff --git a/devel/libtool/patches/patch-ac b/devel/libtool/patches/patch-ac index 965ead8e00a..0cb24e47ca9 100644 --- a/devel/libtool/patches/patch-ac +++ b/devel/libtool/patches/patch-ac @@ -1,6 +1,6 @@ -$NetBSD: patch-ac,v 1.10 2004/02/07 09:25:39 seb Exp $ +$NetBSD: patch-ac,v 1.11 2004/02/18 07:55:51 skrll Exp $ ---- ltmain.sh.orig 2004-01-25 12:40:26.000000000 +0000 +--- ltmain.sh.orig Wed Feb 18 07:53:05 2004 +++ ltmain.sh @@ -318,7 +318,7 @@ if test -z "$show_help"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 @@ -129,3 +129,17 @@ $NetBSD: patch-ac,v 1.10 2004/02/07 09:25:39 seb Exp $ # Check to see that the destination is a directory. test -d "$dest" && isdir=yes +@@ -5673,8 +5716,12 @@ relink_command=\"$relink_command\"" + tmpdir="/tmp" + test -n "$TMPDIR" && tmpdir="$TMPDIR" + tmpdir="$tmpdir/libtool-$$" +- if $mkdir "$tmpdir" && chmod 700 "$tmpdir"; then : ++ save_umask=`umask` ++ umask 0077 ++ if $mkdir "$tmpdir"; then ++ umask $save_umask + else ++ umask $save_umask + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 + continue + fi -- cgit v1.2.3