]> andersk Git - moira.git/commitdiff
print message about not attempting to fix error
authormar <mar>
Mon, 26 Sep 1988 15:20:33 +0000 (15:20 +0000)
committermar <mar>
Mon, 26 Sep 1988 15:20:33 +0000 (15:20 +0000)
dbck/phase1.qc
dbck/phase2.qc
dbck/phase3.qc
dbck/phase4.qc

index bff3bb09fd1c9e75c2d767bddc15a3052be2299a..83b779bc3cf2d861b79296bee17b6e9a21ff78d1 100644 (file)
@@ -365,6 +365,7 @@ phase1()
 ##     retrieve (id = s.string_id, buf = s.string)
 ##         where s.string = strings.string and s.tid != strings.tid {
          printf("String %s(%d) is a duplicate!\n", strtrim(buf), id);
+         printf("Not fixing this error\n");
 ##     }
     }
 ##}
index 5160a0b2112e12723f9066e49c22195961c18ffa..0a9536bc19ac4d5cb653e745197c31c4735782fa 100644 (file)
@@ -564,10 +564,13 @@ phase2()
 ##  range of s is servers
 ##  retrieve (name = s.#name, type = s.acl_type, id1 = s.acl_id) {
        strtrim(type);
-       if (!strcmp(type, "USER") && !hash_lookup(users, id1))
-         printf("Service %s has acl non-existant user %d\n", name, id1);
-       else if (!strcmp(type, "LIST") && !hash_lookup(lists, id1))
-         printf("Service %s has acl non-existant list %d\n", name, id1);
+       if (!strcmp(type, "USER") && !hash_lookup(users, id1)) {
+           printf("Service %s has acl non-existant user %d\n", name, id1);
+           printf("Not fixing this error\n");
+       } else if (!strcmp(type, "LIST") && !hash_lookup(lists, id1)) {
+           printf("Service %s has acl non-existant list %d\n", name, id1);
+           printf("Not fixing this error\n");
+       }
 ##  }
 
     dprintf("Checking servershosts...\n");
@@ -611,18 +614,25 @@ phase2()
 ##  range of h is hostaccess
 ##  retrieve (id1 = h.mach_id, type = h.acl_type, id2 = h.acl_id) {
        strtrim(type);
-       if (!hash_lookup(machines, id1))
-         printf("Hostaccess for non-existant host %d\n", id1);
-       if (!strcmp(type, "USER") && !hash_lookup(users, id2))
-         printf("Hostaccess for %d is non-existant user %d\n", id1, id2);
-       else if (!strcmp(type, "LIST") && !hash_lookup(lists, id2))
-         printf("Hostaccess for %d is non-existant list %d\n", id1, id2);
+       if (!hash_lookup(machines, id1)) {
+           printf("Hostaccess for non-existant host %d\n", id1);
+           printf("Not fixing this error\n");
+       }
+       if (!strcmp(type, "USER") && !hash_lookup(users, id2)) {
+           printf("Hostaccess for %d is non-existant user %d\n", id1, id2);
+           printf("Not fixing this error\n");
+       } else if (!strcmp(type, "LIST") && !hash_lookup(lists, id2)) {
+           printf("Hostaccess for %d is non-existant list %d\n", id1, id2);
+           printf("Not fixing this error\n");
+       }
 ##  }
 
     dprintf("Checking capacls...\n");
 ##  retrieve (id1 = capacls.list_id, name = capacls.tag) {
-       if (!hash_lookup(lists, id1))
-         printf("Capacl for %s is non-existant list %d\n", name, id1);
+       if (!hash_lookup(lists, id1)) {
+           printf("Capacl for %s is non-existant list %d\n", name, id1);
+           printf("Not fixing this error\n");
+       }
 ##  }
 
 ##}
index 4bc5dc91788d0e445684a87d54303e75aacf2760..18a7f7ec01b3bd3630360dfbf97073af366d5cc9 100644 (file)
@@ -65,11 +65,13 @@ phase3()
 ##{
     printf("Phase 3 - Finding unused objects\n");
 
-    dprintf("Checking machines...\n");
-    hash_step(machines, noclu_mach_check, NULL);
+    if (warn) {
+       dprintf("Checking machines...\n");
+       hash_step(machines, noclu_mach_check, NULL);
 
-    dprintf("Checking lists...\n");
-    hash_step(lists, empty_list_check, NULL);
+       dprintf("Checking lists...\n");
+       hash_step(lists, empty_list_check, NULL);
+    }
 
     dprintf("Checking strings...\n");
     hash_step(strings, unref_string_check, NULL);
index 55624e479ac6fb35f29e0f74e4380acc552be55e..367bb3f415a1a5c16b1abc414c2a797a8524805e 100644 (file)
@@ -21,9 +21,11 @@ struct hash *boxes;
     if (u->potype == 'P') {
        if (i = (int) hash_lookup(boxes, u->pobox_id))
          hash_store(boxes, u->pobox_id, i+1);
-       else
+       else {
          printf("User %s(%s) has pobox on non-POP server %d\n",
                 u->fullname, u->login, u->pobox_id);
+         printf("Not fixing this error\n");
+        }
     }
 }
 
This page took 1.077089 seconds and 5 git commands to generate.