btrfs-progs: check: fix option parsing for -E
diff mbox series

Message ID 20190617164548.4776-1-kilobyte@angband.pl
State New
Headers show
Series
  • btrfs-progs: check: fix option parsing for -E
Related show

Commit Message

Adam Borowski June 17, 2019, 4:45 p.m. UTC
It has a mandatory argument, thus it always crashed.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
---
 check/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Sterba June 18, 2019, 1:07 p.m. UTC | #1
On Mon, Jun 17, 2019 at 06:45:48PM +0200, Adam Borowski wrote:
> It has a mandatory argument, thus it always crashed.
> 
> Signed-off-by: Adam Borowski <kilobyte@angband.pl>

Applied, thanks.

Patch
diff mbox series

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) {