Gentoo Archives: eudev

From: Marcus Folkesson <marcus.folkesson@×××××.com>
To: eudev@l.g.o
Cc: Marcus Folkesson <marcus.folkesson@×××××.com>
Subject: [eudev] [PATCH] udevd.c: event-timout options requires an argument
Date: Tue, 28 Nov 2017 10:48:26
Message-Id: 20171128104814.8455-1-marcus.folkesson@gmail.com
1 The optionparser will simply abort(3) if you try to access optarg on an
2 option that not takes arguments.
3
4 Signed-off-by: Marcus Folkesson <marcus.folkesson@×××××.com>
5 ---
6 src/udev/udevd.c | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
8
9 diff --git a/src/udev/udevd.c b/src/udev/udevd.c
10 index 268fa5b4e..aa34d84e5 100644
11 --- a/src/udev/udevd.c
12 +++ b/src/udev/udevd.c
13 @@ -1062,7 +1062,7 @@ static int parse_argv(int argc, char *argv[]) {
14 assert(argc >= 0);
15 assert(argv);
16
17 - while ((c = getopt_long(argc, argv, "c:de:DtN:hV", options, NULL)) >= 0) {
18 + while ((c = getopt_long(argc, argv, "c:de:Dt:N:hV", options, NULL)) >= 0) {
19 int r;
20
21 switch (c) {
22 --
23 2.13.1