X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=build-aux%2Fmktempd;h=54eea90bd2383bc2f038c34b0b365d65b24ffb23;hb=83d9dda1f1623f8bbab011c6196c8a56690c1f6b;hp=2bb424f69efd583369ad674ce89b3944f8c19953;hpb=a297e50aaea292a9abcbf5a4de78a1d21b2fd0da;p=gnulib.git diff --git a/build-aux/mktempd b/build-aux/mktempd index 2bb424f69..54eea90bd 100755 --- a/build-aux/mktempd +++ b/build-aux/mktempd @@ -1,7 +1,7 @@ #!/bin/sh # Create a temporary directory, much like mktemp -d does. -# Copyright (C) 2007-2008 Free Software Foundation, Inc. +# Copyright (C) 2007-2013 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -44,7 +44,8 @@ rand_bytes() dev_rand=/dev/urandom 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" | tr -c $chars 01234567$chars$chars$chars + dd ibs=$n count=1 if="$dev_rand" 2>/dev/null \ + | tr -c $chars 01234567$chars$chars$chars return fi