From: Zdenek Dohnal Date: Thu, 23 Nov 2023 14:42:12 +0000 (+0100) Subject: Check for value, not name X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F830%2Fhead;p=thirdparty%2Fcups.git Check for value, not name --- diff --git a/systemv/lpstat.c b/systemv/lpstat.c index 4dae7358bc..31d97eda63 100644 --- a/systemv/lpstat.c +++ b/systemv/lpstat.c @@ -1478,7 +1478,7 @@ show_jobs(const char *dests, /* I - Destinations */ if (match_list(dests, dest) && match_list(users, username)) { if (!strcmp(which, "successful") && (!reasons || (reasons && - strcmp(reasons->name, "job-completed-successfully")))) + strcmp(reasons->values[0].string.text, "job-completed-successfully")))) continue; snprintf(temp, sizeof(temp), "%s-%d", dest, jobid);