]> git.ipfire.org Git - thirdparty/chrony.git/commit
client: fix parsing of -v command option
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 8 Aug 2017 12:08:30 +0000 (14:08 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 9 Aug 2017 07:57:14 +0000 (09:57 +0200)
commit93076e7e1c25dce4214b4e5ae7633ac849e1a12a
tree3da913e9fab6aa401c22a56ec99b35b7918f7efc
parent1c51feb3c5977e39b9ad60fe33a9508d0058a55d
client: fix parsing of -v command option

The sources and sourcestats commands accept -v as an option, but the
glibc implementation of getopt() reorders the arguments and parses the
option as a command-line option of chronyc.

Add '+' to the getopt string to disable this feature. Other getopt()
implementations should consider it a new command-line option, which will
be handled as an error if present.
client.c