]> andersk Git - moira.git/blobdiff - gen/hesiod.qc
fixed name section
[moira.git] / gen / hesiod.qc
index 4f0fb7f1abcd8afa63ad34c33b1f348fa930c6dd..0c96955c66c01d656f787ef54fb20d86e79ff20c 100644 (file)
@@ -3,8 +3,13 @@
  * This generates the zone files necessary to load a hesiod server.
  * The following zones are generated: passwd, uid, pobox, group,
  * grplist, gid, filsys, cluster, pcap, sloc, service.
+ *
+ *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
+ *  For copying and distribution information, please see the file
+ *  <mit-copyright.h>.
  */
 
+#include <mit-copyright.h>
 #include <stdio.h>
 #include <sms.h>
 #include <sms_app.h>
@@ -609,9 +614,11 @@ do_cluster()
 ##  range of c is cluster
 ##  begin transaction
 ##  retrieve (maxclu = max(c.clu_id))
+    maxclu++;
     setsize = howmany(maxclu, NSETBITS);
 ##  range of m is machine
 ##  retrieve (maxmach = max(m.mach_id))
+    maxmach++;
     machs = (set_mask **)malloc((maxmach + 1) * sizeof(set_mask **));
     bzero(machs, (maxmach + 1) * sizeof(int));
 
This page took 0.302729 seconds and 4 git commands to generate.