--- goobox-2.0.0.orig/src/main.c
+++ goobox-2.0.0/src/main.c
@@ -260,6 +260,8 @@
 {
 	CDDrive *result = NULL;
 	char    *resolved_device = NULL;
+	char    *resolved_real_device = NULL;
+	char    *real_device = NULL;
 	GList   *scan;
 	
 	if (device == NULL)
@@ -277,7 +279,10 @@
 		
 		if (drive->device == NULL)
 			continue;
-		if (strcmp (drive->device, device) == 0) {
+		if (resolve_all_symlinks (drive->device, &resolved_real_device) != GNOME_VFS_OK)
+			continue;
+		real_device = get_path_from_uri (resolved_real_device);
+		if (strcmp (real_device, device) == 0) {
 			result = drive;
 			break;
 		}
