diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-06-09 13:10:35 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-06-09 13:10:35 +0300 |
commit | 263e2e9f9fcf721c11a61a16dca4cb38d6385fe9 (patch) | |
tree | 5caee5e03fcdc4e7d79b4490d8ffbdd1ede13979 /mh/comp.c | |
parent | 766dd82f18c41f4fbf403e6627cb9a37a8b8a69f (diff) | |
download | mailutils-263e2e9f9fcf721c11a61a16dca4cb38d6385fe9.tar.gz mailutils-263e2e9f9fcf721c11a61a16dca4cb38d6385fe9.tar.bz2 |
Fix processing of abbreviated negated boolean options
It was noted that "mhn -nohead" did not suppress the output of
headers as "mhn -noheaders" did. It turned out that the negation
marker was overwritten while scanning options for possible matching
alternatives. This patch fixes it.
* libmailutils/opt/opt.c (find_long_option): Don't overwrite
the negation attribute of the last found option.
* libmailutils/tests/parseopt.c: New option --headers, to test
the fix.
* libmailutils/tests/parseopt28.at: New testcase.
* libmailutils/tests/Makefile.am: Add new testcase.
* libmailutils/tests/testsuite.at: Include new testcase.
* libmailutils/tests/parseopt*.at: Trivial changes
Diffstat (limited to 'mh/comp.c')
0 files changed, 0 insertions, 0 deletions