summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordevzero2000 <devzero2000>2013-07-03 11:04:50 +0000
committerdevzero2000 <devzero2000>2013-07-03 11:04:50 +0000
commit0eee2afd3d5506f218cfaec6ced893962390b069 (patch)
treef647ae61dff04d38036515bd5a489826190f9b14
parent7c74f219a1212595bca660f96c7aa6b828fe2672 (diff)
downloadlibpopt-0eee2afd3d5506f218cfaec6ced893962390b069.tar.gz
malloc check voodo portability quirk
Get rid of a non portable shell export VAR=VALUE costruct. "Posix requires export to honor assignments made as arguments, but older shells do not support this, including /bin/sh in Solaris 10. Portable scripts should separate assignments and exports into different statements" (from http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Builtins.html)
-rw-r--r--CHANGES8
-rwxr-xr-xtestit.sh6
2 files changed, 12 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 6e5659c..2c9941b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,12 @@
1.17 -> 2.0:
+ - devzero2000: malloc check voodo portability quirk
+ Get rid of a non portable shell export VAR=VALUE
+ costruct. "Posix requires export to honor assignments
+ made as arguments, but older shells do not support this,
+ including /bin/sh in Solaris 10.
+ Portable scripts should separate assignments
+ and exports into different statements"
+ (from http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Builtins.html)
- devzero2000: check secure_getenv for glibc 2.17
Use secure_getenv if it is available.
Fall back to __secure_getenv if it is not.
diff --git a/testit.sh b/testit.sh
index 19b4c0c..c2af1a5 100755
--- a/testit.sh
+++ b/testit.sh
@@ -3,9 +3,11 @@
# malloc voo-doo
###############################################
# see http://lists.gnupg.org/pipermail/gcrypt-devel/2010-June/001605.html
-export MALLOC_CHECK_=3
+MALLOC_CHECK_=3
+export MALLOC_CHECK_
# http://udrepper.livejournal.com/11429.html
-export MALLOC_PERTURB_=`expr \( $RANDOM % 255 \) + 1 `
+MALLOC_PERTURB_=`expr \( $RANDOM % 255 \) + 1 `
+export MALLOC_PERTURB_
#
if [ -z "${MALLOC_PERTURB_}" ] # XXX: some shell don't have RANDOM ?
then