From 19532a07905d5e335527756a99d453a36249c35b Mon Sep 17 00:00:00 2001 From: wangchuan2008888 Date: Wed, 26 Apr 2017 14:13:19 +0800 Subject: [PATCH] fix cannot recongnition-l option before fix run bregex -l -f filename will got -----./bregex: invalid option -- 'l' I'm sure the getopt function's parm has some mistake. "d:f:nl?" option would work properly. --- src/tools/bregex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/bregex.c b/src/tools/bregex.c index 2b841978901..42d81344637 100644 --- a/src/tools/bregex.c +++ b/src/tools/bregex.c @@ -87,7 +87,7 @@ int main(int argc, char *const *argv) bindtextdomain("bareos", LOCALEDIR); textdomain("bareos"); - while ((ch = getopt(argc, argv, "d:f:n?")) != -1) { + while ((ch = getopt(argc, argv, "d:f:nl?")) != -1) { switch (ch) { case 'd': /* set debug level */ if (*optarg == 't') {