Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

cupsd crash in get_jobs #2288

Closed
Closed

Description

@michaelrsweet

Version: 1.2.8
CUPS.org User: twaugh.redhat

In get_jobs when my-jobs is set, we compare the job username before it is loaded. Patch attached.

Original bug report:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=231522

Activity

  1. michaelrsweet commented on Mar 15, 2007

    @michaelrsweet
    ContributorAuthor

    CUPS.org User: mike

    Fixed in Subversion repository.

  2. michaelrsweet commented on Mar 15, 2007

    @michaelrsweet
    ContributorAuthor

    "cups-get_jobs.patch":

    --- cups-1.2.8/scheduler/ipp.c.get_jobs 2007-03-13 14:26:39.000000000 +0000
    +++ cups-1.2.8/scheduler/ipp.c 2007-03-13 14:26:41.000000000 +0000
    @@ -5912,9 +5912,6 @@
    if ((job->dtype & dmask) != dtype &&
    (!job->printer || (job->printer->type & dmask) != dtype))
    continue;

    • if (username[0] && strcasecmp(username, job->username))

    - continue;

     if (completed && job->state_value <= IPP_JOB_STOPPED)
       continue;
    

    @@ -5926,6 +5923,9 @@
    if (!job->attrs)
    continue;

    • if (username[0] && strcasecmp(username, job->username))
    •  continue;
      
      if (count > 0)
      ippAddSeparator(con->response);
  3. added this to the Stable milestone on Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions