Skip to contentSkip to conversation

udevinfo: fix printing usage on -q symlink when there's no symlinks

PATCH New Thierry Vignaud 1 participant 1 message Aug 10, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udevinfo: fix printing usage on -q symlink when there's no symlinks

do not print usage help if udevinfo -q symlink -p path returns no symlinks:

udevinfo.c renamed from udevinfo.c.tv +1 -1
@@ -329,7 +329,7 @@
 			goto exit;
 		case QUERY_SYMLINK:
 			if (list_empty(&udev.symlink_list))
-				break;
+				goto exit;
 			if (root)
 				list_for_each_entry(name_loop, &udev.symlink_list, node)
 					printf("%s/%s ", udev_root, name_loop->name);