File 0109-tighter-checks.patch of Package lio-utils.216
From 4f87d08987ab6332154cc37f81019de15a4af894 Mon Sep 17 00:00:00 2001
From: Ritesh Raj Sarraf <rrs@researchut.com>
Date: Fri, 16 Mar 2012 01:23:40 +0530
Subject: tighter checks
Please see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654262 for
details. Thanks to Aurelien Jarno
Signed-off-by: Ritesh Raj Sarraf <rrs@researchut.com>
Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
---
scripts/rc.target | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/rc.target b/scripts/rc.target
index 22c0350..7ad75a3 100644
--- a/scripts/rc.target
+++ b/scripts/rc.target
@@ -51,9 +51,9 @@ LIO_CONFIGFS_SCRIPT="/etc/target/lio_start.sh"
# Enable: Set DEBUG=1 Disable: Set DEBUG=0
DEBUG=0
-LOGFILE=/tmp/tgtctl.dbug
+LOGFILE=/var/log/tgtctl.dbug
-if [ $DEBUG ]; then
+if [ $DEBUG != 0 ]; then
echo "$0 $*" >> $LOGFILE
fi
#########################################################################
--
1.8.1.4