From b4b8950b44f4c7fecf33c4df7ff1d8de19abdb22 Mon Sep 17 00:00:00 2001 From: yoe Date: Thu, 19 Jul 2007 08:50:47 +0000 Subject: [PATCH] r265: Check whether the program runs with a config file rather than stuff on the cmdline, too --- simple_test | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/simple_test b/simple_test index 8b62f29..b19e968 100755 --- a/simple_test +++ b/simple_test @@ -20,5 +20,23 @@ else kill $PID fi rm -f nbd-server.pid +if [ $retval -ne 0 ] +then + rm -f $tmpnam + exit $retval +fi +cat > nbd-server.conf <