--- changer-src/chg-zd-mtx	Sun Mar 31 18:54:07 2002
+++ /opt/amanda/libexec/chg-zd-mtx-fake	Sat Apr  6 17:32:02 2002
@@ -507,10 +507,10 @@
 /^Data Transfer Element '$driveslot':Full/		{
     s/.*(Storage Element \([0-9][0-9]*\) Loaded)\(.*\)/\1/p
 }
-/^[ 	]*Storage Element \([0-9][0-9]*\):Full/		{
+/^[ 	]*Storage Element \([0-9][0-9]*\):/		{
     s/.*Storage Element \([0-9][0-9]*\):.*/\1/p
 }
-' < $mtx_status 2>&1 | grep -v "^${cleanslot}\$" | sort -n`
+' < $mtx_status 2>&1 | grep -v "^${cleanslot}\$" | sort -un`
 	slot_list=`echo $slot_list`		# remove the newlines
 	if [ $firstslot -lt 0 -o $lastslot -lt 0 ]; then
 		last=$lastslot
@@ -552,6 +552,7 @@
 		return $?			# in case we are internal
 	fi
 	slot_list="$amanda_slot_list"
+	Log "SLOTLIST -> $slot_list"
 }
 
 # Paths
