From b97301d7261ca4de2c578f5c9c9a06571c23b81b Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Thu, 23 Nov 2023 15:42:12 +0100 Subject: [PATCH] Check for value, not name --- systemv/lpstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2