From 4afc6e1713dc18dc11af4635a4e22467c27f6f27 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 7 Dec 2010 09:35:18 +0000 Subject: [PATCH] Fixed a bug that could cause scstadmin -write_config to generate an invalid configuration file, e.g. ... GROUP a } ... Reported-by: Frank Zago git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2952 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/scstadmin.sysfs/scstadmin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scstadmin/scstadmin.sysfs/scstadmin b/scstadmin/scstadmin.sysfs/scstadmin index 89ecb43a4..f4b3064c2 100755 --- a/scstadmin/scstadmin.sysfs/scstadmin +++ b/scstadmin/scstadmin.sysfs/scstadmin @@ -1405,9 +1405,8 @@ sub writeConfiguration { } } + $group_buff .= " {\n"; if ($lun_buff || $init_buff) { - $group_buff .= " {\n"; - if ($lun_buff) { $group_buff .= $lun_buff; }