summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rwxr-xr-xbuild-aux/mktempd3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fdf8b25e01..5a616e7bc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-01 Eric Blake <eblake@redhat.com>
+
+ mktempd: silence dd usage
+ * build-aux/mktempd (rand_bytes): Silence dd.
+
2011-11-30 Simon Josefsson <simon@josefsson.org>
manywarnings: Don't mention gcc version in docstring.
diff --git a/build-aux/mktempd b/build-aux/mktempd
index 7a09a4b3bb..b6360e4746 100755
--- a/build-aux/mktempd
+++ b/build-aux/mktempd
@@ -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