From: Sami Kerola Date: Mon, 19 Oct 2020 20:57:04 +0000 (+0100) Subject: colrm: fix argument parsing X-Git-Tag: v2.37-rc1~275^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7ad82209a3f8d1f2b14c17a95655f83b5a9e885;p=thirdparty%2Futil-linux.git colrm: fix argument parsing Short options had all sortss of characters listed, that were clearly copied from col(1) command getopt_long() invocation. Luckily both -V and -h were part of the short options, but lets get rid of the unnecessary ones. Fixes: 1647d032a7bfcba36d3dabe627b858b372210d05 Signed-off-by: Sami Kerola --- diff --git a/text-utils/colrm.c b/text-utils/colrm.c index f9dfd59385..7df5a74506 100644 --- a/text-utils/colrm.c +++ b/text-utils/colrm.c @@ -169,7 +169,7 @@ int main(int argc, char **argv) close_stdout_atexit(); while ((opt = - getopt_long(argc, argv, "bfhl:pxVH", longopts, + getopt_long(argc, argv, "Vh", longopts, NULL)) != -1) switch (opt) { case 'V':