[PATCH 1/2] udevd: fix short options in getopt()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 7fca3141aaf365a630b0a730fc0ee3ad1514d420 Mon Sep 17 00:00:00 2001
From: Yin Kangkai <kangkai.yin@xxxxxxxxx>
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@xxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux