summaryrefslogtreecommitdiff
path: root/mh/mh_whatnow.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-06-09 13:10:35 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2017-06-09 13:10:35 +0300
commit263e2e9f9fcf721c11a61a16dca4cb38d6385fe9 (patch)
tree5caee5e03fcdc4e7d79b4490d8ffbdd1ede13979 /mh/mh_whatnow.c
parent766dd82f18c41f4fbf403e6627cb9a37a8b8a69f (diff)
downloadmailutils-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/mh_whatnow.c')
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.