From 2640fb97a42e0d91603defc0f37388735c56a54d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 4 Sep 2007 13:05:47 -0700 Subject: Fix broken test for /dev/random cookie generation failure. --- startx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'startx.cpp') 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 -- cgit v1.2.1