Ignore:
Timestamp:
Aug 2, 2010, 8:16:45 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: trunk update to 3.5.4

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/printing/print_cups.c

    r464 r480  
    923923        char *filename = NULL;
    924924        size_t size;
     925        uint32_t jobid = (uint32_t)-1;
    925926        char addr[INET6_ADDRSTRLEN];
    926927
     
    989990                      clientname);
    990991
     992        /* Get the jobid from the filename. */
     993        jobid = print_parse_jobid(pjob->filename);
     994        if (jobid == (uint32_t)-1) {
     995                DEBUG(0,("cups_job_submit: failed to parse jobid from name %s\n",
     996                                pjob->filename ));
     997                jobid = 0;
     998        }
     999
    9911000        if (!push_utf8_talloc(frame, &jobname, pjob->jobname, &size)) {
    9921001                goto out;
     
    9941003        new_jobname = talloc_asprintf(frame,
    9951004                        "%s%.8u %s", PRINT_SPOOL_PREFIX,
    996                         (unsigned int)pjob->smbjob,
     1005                        (unsigned int)jobid,
    9971006                        jobname);
    9981007        if (new_jobname == NULL) {
Note: See TracChangeset for help on using the changeset viewer.