From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <eudev+bounces-37-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id D1D2A139082
	for <garchives@archives.gentoo.org>; Tue, 28 Nov 2017 10:48:26 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D931FE0E2D;
	Tue, 28 Nov 2017 10:48:24 +0000 (UTC)
Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 96D38E0E2D
	for <eudev@lists.gentoo.org>; Tue, 28 Nov 2017 10:48:24 +0000 (UTC)
Received: by mail-lf0-x243.google.com with SMTP id i14so36431866lfc.1
        for <eudev@lists.gentoo.org>; Tue, 28 Nov 2017 02:48:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=from:to:cc:subject:date:message-id;
        bh=vFVIzVlOtGG4YDkCTDz6E4bvFVcZBUDlpJXN3WfvY+0=;
        b=spa2siTPv5fdGbZylVGBljUfbFzrHEQVi7i6dRJWmjiZqo5qnqNIYeO80YdRV+Sb0X
         8wGtpxSc9O/jQbxiKpMKgSgcwHMmPsVi6NWNgHlLG6Jpem4NDIa0WFQwOF1n9SRdHFRm
         svjOv9xAirkJYoWZVnetc4Qu6PbdoZ54eE+7fKJS20FvpiUVks9FXHpE8cYVekwq94IK
         FMOF6SdnXYtzqcEsz4Bf6GSzqloCsAzWhmE6uo5M7DquTrikKAnMKTRZu+HzzmRO/ISY
         srqM/pLRGAyrb+SSSuHLCwNn1gAZT2DjauRHoNX/sQiBH3H7sGqghyz1+GViw80AMbES
         bdsA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:cc:subject:date:message-id;
        bh=vFVIzVlOtGG4YDkCTDz6E4bvFVcZBUDlpJXN3WfvY+0=;
        b=EOIIdzHU9IdAHYJBDYGep2WmYAZXLhq/gD6PR3s4Y3xqh1t3Ne7GjSl2sgAY5WQoVT
         pk2Hi3lApkM4EYGOTCylbnF2aH2qXaq4aPlRzQNlxr1fnX/YbluSBDQbkMThT3kYp5FF
         2kBhyoOkVwWDBHCvkcDai7wb+zAzPXUmzDcWE41kL/fWTYKw9r973MSPm4S1ir7M0wwt
         4y+3HCO1T935cyjoR9izotlLaeowbJ3zpfzrCV9YfiwESssu5JMyaZ4Jz0Sl2Y/C6dpD
         8uoKb7lvgGV7o+P5SPCq2hgiRHECtf3kjhK2OTZ8i47ZwPkalccapKEi9/6Jd7JXOmTs
         nYgA==
X-Gm-Message-State: AJaThX5SQ1xLzL8w/3bwYcjPxTmVuR2+u63xMbPqHF59fkepRcqca5zv
	yYjiXLg1CKKAEimo5lXuHkQXfQ==
X-Google-Smtp-Source: AGs4zMbGEYvQ7pdFEJ7WyMSo707Osu65u0qO+f3l4nifV7KtoZflN92mahRkC3I9RD7f0gNh6gJbVg==
X-Received: by 10.46.66.216 with SMTP id h85mr15794465ljf.108.1511866102856;
        Tue, 28 Nov 2017 02:48:22 -0800 (PST)
Received: from localhost.localdomain ([46.194.193.109])
        by smtp.gmail.com with ESMTPSA id h75sm4117588ljf.36.2017.11.28.02.48.21
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 28 Nov 2017 02:48:21 -0800 (PST)
From: Marcus Folkesson <marcus.folkesson@gmail.com>
To: eudev@lists.gentoo.org
Cc: Marcus Folkesson <marcus.folkesson@gmail.com>
Subject: [eudev] [PATCH] udevd.c: event-timout options requires an argument
Date: Tue, 28 Nov 2017 11:48:14 +0100
Message-Id: <20171128104814.8455-1-marcus.folkesson@gmail.com>
X-Mailer: git-send-email 2.15.0
Precedence: bulk
List-Post: <mailto:eudev@lists.gentoo.org>
List-Help: <mailto:eudev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:eudev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:eudev+subscribe@lists.gentoo.org>
List-Id: eudev mailing list <eudev.gentoo.org>
X-BeenThere: eudev@gentoo.org
X-BeenThere: eudev@lists.gentoo.org
X-Archives-Salt: 87224a0a-1950-4d11-94c5-821334eba785
X-Archives-Hash: 2469bb3250f6f5fc3e6efc8f0ce3edd1

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