]> git.ipfire.org Git - people/ms/dma.git/commit
don't treat -options following -q as argument to it
authorSimon Schubert <2@0x2c.org>
Fri, 17 Feb 2012 20:52:30 +0000 (21:52 +0100)
committerSimon Schubert <2@0x2c.org>
Fri, 17 Feb 2012 20:52:30 +0000 (21:52 +0100)
commitaf31dade367e72e04cefe8a43b80edd16155337b
tree1c51bc3f7063e7f6105f67e143e4b00a8e617fa8
parent80c652f8587893a29f8fce2af43817a4b9878b54
don't treat -options following -q as argument to it

sendmail's -q takes an optional argument, but the way we use getopt(3)
does not support this.  Work around this by backtracking if the
argument to -q starts with a dash, indicating that it is an option instead.
dma.c