summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-09-04 13:05:47 -0700
committerEric Anholt <eric@anholt.net>2007-09-04 13:05:47 -0700
commit2640fb97a42e0d91603defc0f37388735c56a54d (patch)
tree815387bef4de82299a97181dc18a9a9d96ca9bfa /startx.cpp
parentfc6cc81be41af58ffd996994e1325dd072a9ab34 (diff)
downloadxorg-app-xinit-2640fb97a42e0d91603defc0f37388735c56a54d.tar.gz
Fix broken test for /dev/random cookie generation failure.
Diffstat (limited to 'startx.cpp')
-rw-r--r--startx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/startx.cpp b/startx.cpp
index f4e24fd..42421ef 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -189,7 +189,7 @@ authdisplay=${display:-:0}
mcookie=`MK_COOKIE`
#else
mcookie=`dd if=/dev/random bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"`
-if x"$mcookie" = x; then
+if test x"$mcookie" = x; then
echo "Couldn't create cookie"
exit 1
fi