* [eudev] [PATCH] udevd.c: event-timout options requires an argument
@ 2017-11-28 10:48 Marcus Folkesson
0 siblings, 0 replies; only message in thread
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 [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-28 10:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-28 10:48 [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