scstadmin: Fix -close_dev

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7564 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-11-01 04:27:01 +00:00
parent a007aede73
commit 9d01de3261
+2 -1
View File
@@ -4751,7 +4751,8 @@ sub closeDevice {
my ($attributes, $errorString) = $SCST->deviceAttributes($device);
if (!$force) {
if (keys %{$$attributes{'exported'}}) {
if (keys %{$$attributes{'exported'}} &&
$$attributes{'exported'}->{'value'}) {
listExported($device, $attributes);
immediateExit("Device '$device' still in use, aborting. ".
"Use -force to override.");