linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] udevd: fix short options in getopt()
@ 2010-08-02  3:40 Yin Kangkai
  0 siblings, 0 replies; only message in thread
From: Yin Kangkai @ 2010-08-02  3:40 UTC (permalink / raw)
  To: linux-hotplug

From 7fca3141aaf365a630b0a730fc0ee3ad1514d420 Mon Sep 17 00:00:00 2001
From: Yin Kangkai <kangkai.yin@intel.com>
Date: Thu, 29 Jul 2010 10:47:54 +0800
Subject: [PATCH 1/2] udevd: fix short options in getopt()

Otherwise, run udevd like "udevd -c" will seg fault.

Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
---
 udev/udevd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/udev/udevd.c b/udev/udevd.c
index 873634f..95d4ad8 100644
--- a/udev/udevd.c
+++ b/udev/udevd.c
@@ -1060,7 +1060,7 @@ int main(int argc, char *argv[])
 	for (;;) {
 		int option;
 
-		option = getopt_long(argc, argv, "cdeDthV", options, NULL);
+		option = getopt_long(argc, argv, "c:de:DhVN:", options, NULL);
 		if (option = -1)
 			break;
 
-- 
1.6.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-02  3:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-02  3:40 [PATCH 1/2] udevd: fix short options in getopt() Yin Kangkai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).