from Bill Nottingham.
* Adjust makefile to make sure the install directories are created
before files are copied into them.
+ * Fix minor bug in optimizing of argument parsing. Based on
+ report from jakemus on freshmeat.
-- Petter Reinholdtsen <pere@hungry.com> Sun, 12 Jul 2009 19:58:10 +0200
*/
isinit = (getpid() == 1);
for (f = 1; f < argc; f++) {
- if (!strcmp(argv[f], "-i") || !strcmp(argv[f], "--init"))
+ if (!strcmp(argv[f], "-i") || !strcmp(argv[f], "--init")) {
isinit = 1;
break;
+ }
}
if (!isinit) exit(telinit(p, argc, argv));