* #!/usr/bin/cgi-fcgi-interp [<options>],<interpreter>
*/
/*
- * cgi-fcgi-interp.[ch] - C helpers common to the whole of chiark-utils
+ * cgi-fcgi-interp.[ch] - Convenience wrapper for cgi-fcgi
*
* Copyright 2016 Ian Jackson
* Copyright 1982,1986,1993 The Regents of the University of California
fprintf(stderr,"stab_isnewer mtime %lu %lu\n",
(unsigned long)a->st_mtime,
(unsigned long)b->st_mtime);
- return a->st_mtime > &b->st_mtime;
+ return a->st_mtime > b->st_mtime;
}
static void stab_mtimenow(struct stat *out) {
out->st_mtime = time(NULL);
- if (baseline_time.st_mtime == (time_t)-1) diee("(stage2) time()");
+ if (out->st_mtime == (time_t)-1) diee("(stage2) time()");
if (debugmode)
fprintf(stderr,"stab_mtimenow mtime %lu\n",
(unsigned long)out->st_mtime);
script = *argv++;
if (!script) badusage("need script argument");
- if (*argv) badusage("too many arguments");
if (!stage2) {