commit | b123f2395266a44176e49cee251fb776e97f26e1 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sat Feb 24 10:26:26 2018 -0500 |
committer | Rich Felker <dalias@aerifal.cx> | Sat Feb 24 10:26:26 2018 -0500 |
tree | 31663a69a638ffc289a0e878938bafc9cc2b4fa1 | |
parent | 82f176803ae07e34229906d5c7c62889e665dc97 [diff] |
fix getopt wrongly treating colons in optstring as valid option chars the ':' in optstring has special meaning as a flag applying to the previous option character, or to getopt's error handling behavior when it appears at the beginning. don't also accept a "-:" option based on its presence.