]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: With GLIBC allow subcommand -options to be anywhere in command line.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 Jul 2010 15:31:25 +0000 (16:31 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 Jul 2010 15:31:25 +0000 (16:31 +0100)
--HG--
branch : HEAD

src/doveadm/doveadm.c

index c0e0d6a1945173d17febb0103cba204e174538d8..60353bb75c4d752f834b7f248825a66de95657a9 100644 (file)
@@ -363,7 +363,12 @@ int main(int argc, char *argv[])
 
        argc -= optind;
        argv += optind;
+#ifdef __GLIBC__
+       /* for subcommands allow -options anywhere in command line */
+       optind = 0;
+#else
        optind = 1;
+#endif
 
        master_service_init_finish(master_service);
        if (!doveadm_debug) {