]> andersk Git - moira.git/commitdiff
Don't skip over acl entries that are unreferenced strings; log an error
authorzacheiss <zacheiss>
Thu, 9 Mar 2000 19:56:47 +0000 (19:56 +0000)
committerzacheiss <zacheiss>
Thu, 9 Mar 2000 19:56:47 +0000 (19:56 +0000)
and exit.

gen/genacl.pc

index 0ed1a07299f3e2a075b516a05f6909b9d2070601..61d728cf360e30cce9a4c0811fcdf02908600eb3 100644 (file)
@@ -47,7 +47,12 @@ void dump_krb_acl(FILE *out, char *type, int id, int vers)
   sq = get_acl(type, id, NULL);
   while (sq_remove_data(sq, &m))
     {
-      if (m->type != 'S' && m->name != NULL)
+      if (m->name == NULL)
+       {
+         fprintf(stderr, "Found string_id with no associated string.  Exiting.\n");
+         exit(MR_DBMS_ERR);
+       }
+      if (m->type != 'S')
        {
          canon_krb(m, vers, kbuf, sizeof(kbuf));
          fprintf(out, "%s\n", kbuf);
This page took 0.149661 seconds and 5 git commands to generate.