5903bc9d1be545a1cc9e1cdf1875ef452c9ca9fb jcasper Fri Jul 15 09:52:52 2016 -0700 Need to set up udc before calling cartEmptyShell, otherwise hubs don't work right, refs #17686 diff --git src/utils/newProg/newProg.c src/utils/newProg/newProg.c index cf953a4..72837dc 100644 --- src/utils/newProg/newProg.c +++ src/utils/newProg/newProg.c @@ -57,30 +57,31 @@ , description ); fprintf(f, "/* Null terminated list of CGI Variables we don't want to save\n" " * permanently. */\n" "char *excludeVars[] = {\"Submit\", \"submit\", NULL,};\n" "\n" ); fprintf(f, "int main(int argc, char *argv[])\n" "/* Process command line. */\n" "{\n" "cgiSpoof(&argc, argv);\n" +"setUdcCacheDir();\n" "cartEmptyShell(doMiddle, hUserCookie(), excludeVars, oldVars);\n" "return 0;\n" "}\n" ); } void makeCommandLineBody(char *name, char *description, FILE *f) /* Create most of the C file for a command line. */ { /* Make the usage routine. */ fprintf(f, "void usage()\n"); fprintf(f, "/* Explain usage and exit. */\n"); fprintf(f, "{\n"); fprintf(f, "errAbort(\n"); fprintf(f, " \"%s - %s\\n\"\n", name, description);