public inbox for eudev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [eudev] [PATCH] udevd.c: event-timout options requires an argument
@ 2017-11-28 10:48 99% Marcus Folkesson
  0 siblings, 0 replies; 1+ results
From: Marcus Folkesson @ 2017-11-28 10:48 UTC (permalink / raw
  To: eudev; +Cc: Marcus Folkesson

The optionparser will simply abort(3) if you try to access optarg on an
option that not takes arguments.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
 src/udev/udevd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 268fa5b4e..aa34d84e5 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1062,7 +1062,7 @@ static int parse_argv(int argc, char *argv[]) {
         assert(argc >= 0);
         assert(argv);
 
-        while ((c = getopt_long(argc, argv, "c:de:DtN:hV", options, NULL)) >= 0) {
+        while ((c = getopt_long(argc, argv, "c:de:Dt:N:hV", options, NULL)) >= 0) {
                 int r;
 
                 switch (c) {
-- 
2.13.1



^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-11-28 10:48 99% [eudev] [PATCH] udevd.c: event-timout options requires an argument Marcus Folkesson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox