From 648802169a29ea096d6e9813b043b91af9342f8d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 16 Apr 2010 08:47:28 +0200 Subject: tests: update init.sh from gnulib * tests/init.sh: Update from gnulib. --- tests/init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/init.sh') diff --git a/tests/init.sh b/tests/init.sh index 3e3ea44..ee9c542 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -259,7 +259,7 @@ rand_bytes_() if test -r "$dev_rand_"; then # Note: 256-length($chars_) == 194; 3 copies of $chars_ is 186 + 8 = 194. dd ibs=$n_ count=1 if=$dev_rand_ 2>/dev/null \ - | tr -c $chars_ 01234567$chars_$chars_$chars_ + | LC_ALL=C tr -c $chars_ 01234567$chars_$chars_$chars_ return fi @@ -276,7 +276,7 @@ rand_bytes_() echo "$data_" \ | dd bs=1 skip=50 count=$n_ 2>/dev/null \ - | tr -c $chars_ 01234567$chars_$chars_$chars_ + | LC_ALL=C tr -c $chars_ 01234567$chars_$chars_$chars_ } mktempd_() @@ -306,7 +306,7 @@ mktempd_() fail=0 # First, try to use mktemp. - d=`env -u TMPDIR mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \ + d=`unset TMPDIR; mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \ || fail=1 # The resulting name must be in the specified directory. -- cgit v1.2.1