]> mj.ucw.cz Git - libucw.git/commitdiff
The --dumpconfig option stops the program after dumping.
authorMartin Mares <mj@ucw.cz>
Fri, 28 Apr 2006 09:22:27 +0000 (11:22 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 28 Apr 2006 09:22:27 +0000 (11:22 +0200)
lib/conf2.c

index 04b4a6395311b79b035a2b74b84511a901ffc29c..a8f244620c8c2a16c1cf0f30f1de201daa86fe20 100644 (file)
@@ -1429,6 +1429,7 @@ cf_getopt(int argc, char * const argv[], const char *short_opts, const struct op
        struct fastbuf *b = bfdopen(1, 4096);
        cf_dump_sections(b);
        bclose(b);
+       exit(0);
       }
 #endif
     } else {