From: Thierry Vignaud Date: Wed, 10 Aug 2005 11:22:08 +0000 Subject: [PATCH] udevinfo: fix printing usage on -q symlink when there's no symlinks Message-Id: MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: To: linux-hotplug@vger.kernel.org --=-=-= do not print usage help if udevinfo -q symlink -p path returns no symlinks: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=23_udev_info.diff --- ./udevinfo.c.tv 2005-08-10 03:36:48.000000000 +0200 +++ ./udevinfo.c 2005-08-10 03:36:44.000000000 +0200 @@ -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); --=-=-=-- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel