2013-01-08 13:54:22 +01:00
|
|
|
From 5bbbe461fd4d133eac49f41210e2fd4846f577d8 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
|
Date: Wed, 19 Dec 2012 13:12:26 +0100
|
|
|
|
Subject: [PATCH] udevd: add missing ':' to getopt_long 'e'
|
|
|
|
|
|
|
|
Parameter -e is set without additional argument in getopt
|
|
|
|
and this leads to segfault when calling 'systemd-udevd -e'.
|
|
|
|
---
|
|
|
|
src/udev/udevd.c | 2 +-
|
|
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
|
2013-01-09 10:46:41 +01:00
|
|
|
Index: systemd-195/src/udev/udevd.c
|
|
|
|
===================================================================
|
|
|
|
--- systemd-195.orig/src/udev/udevd.c
|
|
|
|
+++ systemd-195/src/udev/udevd.c
|
|
|
|
@@ -1104,7 +1104,7 @@ int main(int argc, char *argv[])
|
2013-01-08 13:54:22 +01:00
|
|
|
for (;;) {
|
|
|
|
int option;
|
|
|
|
|
|
|
|
- option = getopt_long(argc, argv, "c:deDtN:hV", options, NULL);
|
|
|
|
+ option = getopt_long(argc, argv, "c:de:DtN:hV", options, NULL);
|
|
|
|
if (option == -1)
|
|
|
|
break;
|
|
|
|
|