]> git.pld-linux.org Git - packages/cups.git/commitdiff
- fix client-error-forbidden unless /jobs section exists in cupsd.conf; no option...
authorKarol Krenski <charles@pld-linux.org>
Mon, 17 Oct 2005 15:37:44 +0000 (15:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cups-anonymous_jobs.patch -> 1.1

cups-anonymous_jobs.patch [new file with mode: 0644]

diff --git a/cups-anonymous_jobs.patch b/cups-anonymous_jobs.patch
new file mode 100644 (file)
index 0000000..066331a
--- /dev/null
@@ -0,0 +1,22 @@
+--- cups-1.1.23/scheduler/ipp.c.orig   2005-01-03 20:29:59.000000000 +0100
++++ cups-1.1.23/scheduler/ipp.c        2005-10-17 14:20:24.000000000 +0200
+@@ -6792,7 +6792,9 @@
+   struct passwd               *user;          /* User info */
+   struct group                *group;         /* System group info */
+   char                        junk[33];       /* MD5 password (not used) */
++  location_t          *loc;           /* Authentication location */
++  loc = FindBest(con->uri, con->http.state);
+   LogMessage(L_DEBUG2, "validate_user(%p[%d], \"%s\", %p, %d)\n",
+              con, con->http.fd, owner, username, userlen);
+@@ -6801,6 +6803,9 @@
+   * Validate input...
+   */
++  if (loc->type == AUTH_NONE)
++    return (1);
++
+   if (con == NULL || owner == NULL || username == NULL || userlen <= 0)
+     return (0);
This page took 0.169779 seconds and 4 git commands to generate.