]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - scheduler/job.c
Load cups into easysw/current.
[thirdparty/cups.git] / scheduler / job.c
index de0d6005cf7b5fd0feaf6ba34cb72c43aa000687..2cd60b6163234a12267574177abb1e6fa6bc324b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: job.c 5543 2006-05-18 20:51:33Z mike $"
+ * "$Id: job.c 5545 2006-05-18 21:00:56Z mike $"
  *
  *   Job management routines for the Common UNIX Printing System (CUPS).
  *
@@ -865,6 +865,13 @@ cupsdLoadJob(cupsd_job_t *job)             /* I - Job */
   cups_file_t          *fp;            /* Job file */
   int                  fileid;         /* Current file ID */
   ipp_attribute_t      *attr;          /* Job attribute */
+  char                 scheme[32],     /* Scheme portion of URI */
+                       username[64],   /* Username portion of URI */
+                       host[HTTP_MAX_HOST],
+                                       /* Host portion of URI */
+                       resource[HTTP_MAX_URI];
+                                       /* Resource portion of URI */
+  int                  port;           /* Port portion of URI */
   const char           *dest;          /* Destination */
   mime_type_t          **filetypes;    /* New filetypes array */
   int                  *compressions;  /* New compressions array */
@@ -948,7 +955,11 @@ cupsdLoadJob(cupsd_job_t *job)             /* I - Job */
       return;
     }
 
-    if ((dest = cupsdValidateDest(attr->values[0].string.text, &(job->dtype),
+    httpSeparateURI(HTTP_URI_CODING_ALL, attr->values[0].string.text, scheme,
+                    sizeof(scheme), username, sizeof(username), host,
+                   sizeof(host), &port, resource, sizeof(resource));
+
+    if ((dest = cupsdValidateDest(host, resource, &(job->dtype),
                                   NULL)) == NULL)
     {
       cupsdLogMessage(CUPSD_LOG_ERROR,
@@ -3444,5 +3455,5 @@ unload_job(cupsd_job_t *job)              /* I - Job */
 
 
 /*
- * End of "$Id: job.c 5543 2006-05-18 20:51:33Z mike $".
+ * End of "$Id: job.c 5545 2006-05-18 21:00:56Z mike $".
  */