]> andersk Git - moira.git/blobdiff - backup/rest_db.qc
Use correct listname and speed up quota retrieval
[moira.git] / backup / rest_db.qc
index 82ffbecf03c9f2070b0ea2d16539ba3cbc17fd48..4ce571d321a29994207d53366401c9ed4fed3439 100644 (file)
@@ -3,12 +3,10 @@
  *     $Author$
  *     $Header$
  *
- *     Copyright (C) 1987 by the Massachusetts Institute of Technology
- *
- *     $Log$
- *     Revision 1.1  1987-07-13 03:50:02  wesommer
- *     Initial revision
- *
+ *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
+ *  For copying and distribution information, please see the file
+ *  <mit-copyright.h>.
+ * 
  */
 
 #ifndef lint
@@ -18,6 +16,8 @@ static char *rcsid_rest_db_qc = "$Header$";
 #include <sys/file.h>
 #include <stdio.h>
 #include <ctype.h>
+#include <mit-copyright.h>
+
 
 /*ARGSUSED*/
 main(argc, argv)
@@ -151,9 +151,11 @@ void parse_str(f, buf, len)
     if (c == EOF)
        return;
     
-    if (c != EOF && c != ':' && c != '\n')
+    if (c != EOF && c != ':' && c != '\n') {
        fprintf(stderr, "Field too wide, truncated\n");
-    else {
+       while ((c = getc(f)) != EOF && c != ':' && c != '\n');
+       (void) ungetc(c, f);
+    } else {
        *buf++ = 0;
        (void) ungetc(c, f);
     }
This page took 1.079267 seconds and 4 git commands to generate.