Merge branch 'svn-trunk'

This commit is contained in:
Bart Van Assche
2017-12-31 10:09:00 -08:00

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.");