]> andersk Git - moira.git/commitdiff
rebuild printcap file if machine table changes
authormar <mar>
Tue, 2 Mar 1993 17:16:37 +0000 (17:16 +0000)
committermar <mar>
Tue, 2 Mar 1993 17:16:37 +0000 (17:16 +0000)
gen/hesiod.dc

index 59a08257a4e74be48b16381a45d459c0d61812ef..ecd64724dc4a1c63efedc28dfa737539146bbee4 100644 (file)
@@ -782,15 +782,17 @@ do_printcap()
     time_t ftime;
     EXEC SQL BEGIN DECLARE SECTION;
     char name[17], rp[17], sd[33];
-    int flag, ka, pc, rm, rq;
+    int flag1, flag2, ka, pc, rm, rq;
     EXEC SQL END DECLARE SECTION;
 
     sprintf(outf, "%s/printcap.db", hesiod_dir);
 
     if (stat(outf, &sb) == 0) {
        ftime = sb.st_mtime;
-       if (ModDiff (&flag, "printcap", ftime)) exit (MR_DATE);
-       if (flag < 0) {
+       if (ModDiff (&flag1, "printcap", ftime)
+           || ModDiff (&flag2, "machine", ftime))
+         exit (MR_DATE);
+       if (flag1 < 0 && flag2 < 0) {
            fprintf(stderr, "File printcap.db does not need to be rebuilt.\n");
            return(0);
       }
This page took 0.128203 seconds and 5 git commands to generate.