From patchwork Mon Jun 17 16:45:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Borowski X-Patchwork-Id: 10999785 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 551291395 for ; Mon, 17 Jun 2019 16:46:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A46D28947 for ; Mon, 17 Jun 2019 16:46:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AF4928958; Mon, 17 Jun 2019 16:46:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCD6428947 for ; Mon, 17 Jun 2019 16:46:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727750AbfFQQp7 (ORCPT ); Mon, 17 Jun 2019 12:45:59 -0400 Received: from tartarus.angband.pl ([54.37.238.230]:55476 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726005AbfFQQp6 (ORCPT ); Mon, 17 Jun 2019 12:45:58 -0400 Received: from [2a02:a31c:853f:a300::4] (helo=valinor.angband.pl) by tartarus.angband.pl with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hculU-0005Qn-JE; Mon, 17 Jun 2019 18:45:54 +0200 Received: from kilobyte by valinor.angband.pl with local (Exim 4.92) (envelope-from ) id 1hculT-0001GV-UE; Mon, 17 Jun 2019 18:45:51 +0200 From: Adam Borowski To: David Sterba , linux-btrfs@vger.kernel.org Cc: Adam Borowski Date: Mon, 17 Jun 2019 18:45:48 +0200 Message-Id: <20190617164548.4776-1-kilobyte@angband.pl> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a02:a31c:853f:a300::4 X-SA-Exim-Mail-From: kilobyte@angband.pl Subject: [PATCH] btrfs-progs: check: fix option parsing for -E X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on tartarus.angband.pl) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It has a mandatory argument, thus it always crashed. Signed-off-by: Adam Borowski --- check/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check/main.c b/check/main.c index 731c21d3..b2f0c810 100644 --- a/check/main.c +++ b/check/main.c @@ -9923,7 +9923,7 @@ int cmd_check(int argc, char **argv) { NULL, 0, NULL, 0} }; - c = getopt_long(argc, argv, "as:br:pEQ", long_options, NULL); + c = getopt_long(argc, argv, "as:br:pE:Q", long_options, NULL); if (c < 0) break; switch(c) {