]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Also check for NumSystemGroups == 0 when handling "AuthClass System".
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 29 Dec 2001 00:32:28 +0000 (00:32 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 29 Dec 2001 00:32:28 +0000 (00:32 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@1988 7a7537e8-13f0-0310-91df-b6672ffda945

scheduler/conf.c

index 9b17bcd2d18ce4ec728d0ac1d0870fd2730ce761..05adde9d5ff028d1a0b27c3022433bc9db9ad937 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: conf.c,v 1.77.2.4 2001/12/29 00:28:15 mike Exp $"
+ * "$Id: conf.c,v 1.77.2.5 2001/12/29 00:32:28 mike Exp $"
  *
  *   Configuration routines for the Common UNIX Printing System (CUPS).
  *
@@ -1668,6 +1668,13 @@ read_location(FILE *fp,          /* I - Configuration file */
       {
         loc->level = AUTH_GROUP;
 
+       /*
+        * Use the default system group if none is defined so far...
+       */
+
+        if (NumSystemGroups == 0)
+         NumSystemGroups = 1;
+
        for (i = 0; i < NumSystemGroups; i ++)
          AddName(loc, SystemGroups[i]);
       }
@@ -1995,5 +2002,5 @@ get_addr_and_mask(const char *value,      /* I - String from config file */
 
 
 /*
- * End of "$Id: conf.c,v 1.77.2.4 2001/12/29 00:28:15 mike Exp $".
+ * End of "$Id: conf.c,v 1.77.2.5 2001/12/29 00:32:28 mike Exp $".
  */