diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-07-11 23:09:57 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-07-11 23:09:57 -0700 |
commit | 50e8eeacba515a73d21eebfddee84a299de51895 (patch) | |
tree | ac006e06475e9f409470ee4700fb4f89304cbc51 /tests/common.tl | |
parent | cc11af59cfd039558f9bdac872b2cf0d8ff1e446 (diff) | |
download | txr-50e8eeacba515a73d21eebfddee84a299de51895.tar.gz txr-50e8eeacba515a73d21eebfddee84a299de51895.tar.bz2 txr-50e8eeacba515a73d21eebfddee84a299de51895.zip |
txr: fix inappropriate "takes no argument".
txr is reporting "option --<foo> takes no argument"
for any unknown option <foo>, which is silly.
* txr.c (no_dbg_support): Drop setuid privilege here
before doing the output.
(txr_main): Block that diagnoses "takes no argument"
is now reachable only by goto. Every no-argument option tests
the org variable and branches there if there are arguments.
Some rearrangement of drop_privilege() calls and
insertion of missing ones via it now being called in
no_dbug_support.
Diffstat (limited to 'tests/common.tl')
0 files changed, 0 insertions, 0 deletions