summaryrefslogtreecommitdiffstats
path: root/src/expect.c
diff options
context:
space:
mode:
authorClemence Faure <clemence.faure@sophos.com>2013-07-23 15:00:18 +0200
committerFlorian Westphal <fw@strlen.de>2013-07-24 14:59:40 +0200
commit8e9906b69b03eb12fc75e857a347c4505332b820 (patch)
tree74af731b78e4a2237e52ba8f8002c4203f778680 /src/expect.c
parent89d016bb2cd72013cec1ae1c5cb2dfff15563d51 (diff)
conntrack: fix reporting of unknown arguments
short options were always reported as "unknown argument". getopt(3) says: if [it] finds an option character in argv that was not included in optstring, or if it detects a missing option argument, it returns '?' and sets the external variable optopt to the actual option character. If the first character [...] of optstring is a colon (':'), then getopt() returns ':' instead of '?' to indicate a missing option argument. Signed-off-by: Clemence Faure <clemence.faure@sophos.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/expect.c')
0 files changed, 0 insertions, 0 deletions