Skip to content

Commit

Permalink
Check for value, not name
Browse files Browse the repository at this point in the history
  • Loading branch information
zdohnal committed Nov 23, 2023
1 parent ed97353 commit b97301d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemv/lpstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b97301d

Please sign in to comment.