From 5930008dba865dd58a889a772927913c4f7bf341 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 24 Jan 2017 00:29:41 +0000 Subject: [PATCH 1/2] Add scstadmin in the dist archive Reported by David Chen git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7091 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ff8d4913f..174180907 100644 --- a/Makefile +++ b/Makefile @@ -419,7 +419,7 @@ scst-dist-gzip: else \ scripts/list-source-files; \ fi | \ - grep -E '^doc/|^fcst/|^iscsi-scst/|^Makefile|^qla2x00t(|_git)/|^scst.spec|^scst/|^scst_local/|^srpt/|^usr/'|\ + grep -E '^doc/|^fcst/|^iscsi-scst/|^Makefile|^qla2x00t(|_git)/|^scst.spec|^scst/|^scst_local/|^srpt/|^usr/|^scstadmin/'|\ tar -T- -cf- | \ tar -C $${name}-$(VERSION) -xf-; \ } && \ From 2a074789ac8d551de13f45dea5653dba0321180a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 5 Feb 2017 06:52:06 +0000 Subject: [PATCH 2/2] scstadmin: Revert r7014 The immediateExit() call introduced in r7014 prevents to assign multiple values to attributes that support multiple values, e.g. 'allowed_portal'. Hence revert r7014. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7092 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/scstadmin.sysfs/scstadmin | 2 -- 1 file changed, 2 deletions(-) diff --git a/scstadmin/scstadmin.sysfs/scstadmin b/scstadmin/scstadmin.sysfs/scstadmin index ab17335a5..48c4fa90d 100755 --- a/scstadmin/scstadmin.sysfs/scstadmin +++ b/scstadmin/scstadmin.sysfs/scstadmin @@ -5762,8 +5762,6 @@ sub configToAttr { if (!scalar keys %{$$config{$attr}}) { $attributes{$attr} = ''; } elsif ((keys %{$$config{$attr}}) > 1) { - immediateExit("Invalid configuration encountered. ". - "Attribute '$attr' has multiple values."); foreach my $value (keys %{$$config{$attr}}) { push @{$attributes{$attr}}, $value; }