Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 41095 Details for
Bug 66355
sys-devel/gettext: Insecure tempfile handling
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gettext-0.14.1-tempfile.patch
gettext-0.14.1-tempfile.patch (text/plain), 2.57 KB, created by
Luke Macken (RETIRED)
on 2004-10-04 15:01:52 UTC
(
hide
)
Description:
gettext-0.14.1-tempfile.patch
Filename:
MIME Type:
Creator:
Luke Macken (RETIRED)
Created:
2004-10-04 15:01:52 UTC
Size:
2.57 KB
patch
obsolete
>diff -ur gettext-0.14.1.orig/gettext-tools/misc/autopoint.in gettext-0.14.1/gettext-tools/misc/autopoint.in >--- gettext-0.14.1.orig/gettext-tools/misc/autopoint.in 2004-01-29 20:17:27.000000000 +0100 >+++ gettext-0.14.1/gettext-tools/misc/autopoint.in 2004-09-20 10:26:14.000000000 +0200 >@@ -39,14 +39,7 @@ > */* | *\\*) ;; > *) # Need to look in the PATH. > if test "${PATH_SEPARATOR+set}" != set; then >- { echo "#! /bin/sh"; echo "exit 0"; } > /tmp/conf$$.sh >- chmod +x /tmp/conf$$.sh >- if (PATH="/nonexistent;/tmp"; conf$$.sh) >/dev/null 2>&1; then >- PATH_SEPARATOR=';' >- else >- PATH_SEPARATOR=: >- fi >- rm -f /tmp/conf$$.sh >+ PATH_SEPARATOR=: > fi > save_IFS="$IFS"; IFS="$PATH_SEPARATOR" > for dir in $PATH; do >@@ -318,7 +311,15 @@ > cvs_dir=tmpcvs$$ > work_dir=tmpwrk$$ > mkdir "$cvs_dir" >+if [ $? -ne 0 ]; then >+ echo "ERROR making $cvs_dir" >+ exit 1 >+fi > mkdir "$work_dir" >+if [ $? -ne 0 ]; then >+ echo "ERROR making $work_dir" >+ exit 1 >+fi > CVSROOT="$srcdir/$cvs_dir" > export CVSROOT > unset CVS_CLIENT_LOG >@@ -384,8 +385,7 @@ > # original - too great risk of version mismatch. > if test -z "$force"; then > mismatch= >- mismatchfile="${TMPDIR-/tmp}"/autopoint$$.diff >- rm -f "$mismatchfile" >+ mismatchfile="`mktemp -t autopoint.diff.XXXXXX`" > for file in `find "$work_dir/archive" -type f -print | sed -e "s,^$work_dir/archive/,," | LC_ALL=C sort`; do > func_destfile "$file" > if test -n "$destfile"; then >@@ -417,6 +417,10 @@ > # Recompute base. It was clobbered by the recursive call. > base=`echo "$1" | sed -e 's,/[^/]*$,,'` > test -d "$base" || { echo "Creating directory $base"; mkdir "$base"; } >+ if [ $? -ne 0 ]; then >+ echo "ERROR making directory $base" >+ exit 1 >+ fi > fi > } > >diff -ur gettext-0.14.1.orig/gettext-tools/misc/gettextize.in gettext-0.14.1/gettext-tools/misc/gettextize.in >--- gettext-0.14.1.orig/gettext-tools/misc/gettextize.in 2004-01-20 12:30:06.000000000 +0100 >+++ gettext-0.14.1/gettext-tools/misc/gettextize.in 2004-09-20 10:22:39.000000000 +0200 >@@ -39,14 +39,7 @@ > */* | *\\*) ;; > *) # Need to look in the PATH. > if test "${PATH_SEPARATOR+set}" != set; then >- { echo "#! /bin/sh"; echo "exit 0"; } > /tmp/conf$$.sh >- chmod +x /tmp/conf$$.sh >- if (PATH="/nonexistent;/tmp"; conf$$.sh) >/dev/null 2>&1; then >- PATH_SEPARATOR=';' >- else >- PATH_SEPARATOR=: >- fi >- rm -f /tmp/conf$$.sh >+ PATH_SEPARATOR=: > fi > save_IFS="$IFS"; IFS="$PATH_SEPARATOR" > for dir in $PATH; do
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 66355
: 41095