udevd: fix short options in getopt()
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.
Signed-off-by Yin Kangkai <[email protected]>
--- udev/udevd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
udev/udevd.c +1 -1
@@ -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