Skip to contentSkip to conversation

udevd: fix short options in getopt()

PATCH In review Yin Kangkai 1 participant 1 message Aug 2, 2010

lore
Share & tools
lore
#0 lore raw

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

From 7fca3141aaf365a630b0a730fc0ee3ad1514d420 Mon Sep 17 00:00:00 2001
From: Yin Kangkai <[email protected]>
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.

---
 udev/udevd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
udev/udevd.c +1 -1
index 873634f..95d4ad8 100644
@@ -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;
 
Signature · 1 line
1.6.5