diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2010-05-10 22:58:10 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2010-05-10 22:58:10 +0000 |
commit | cc75483441ba4241a6b0079e028d7699d99a6b0f (patch) | |
tree | 07af3321d8e2ad36d8fad169a15674ce7cc4c460 /systemv/lpstat.c | |
parent | 6d2f911bdd077fee9489b1084b960c4e68fc0658 (diff) |
Merge changes from CUPS 1.5svn-r9136.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@2180 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv/lpstat.c')
-rw-r--r-- | systemv/lpstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/systemv/lpstat.c b/systemv/lpstat.c index a1f4698f7..212cd89f4 100644 --- a/systemv/lpstat.c +++ b/systemv/lpstat.c @@ -574,11 +574,11 @@ match_list(const char *list, /* I - List of names */ /* - * An empty list never matches... + * An empty list always matches... */ if (!list || !*list) - return (0); + return (1); while (*list) { @@ -1416,7 +1416,7 @@ show_jobs(const char *dests, /* I - Destinations */ rank ++; - if (match_list(dests, dest) || match_list(users, username)) + if (match_list(dests, dest) && match_list(users, username)) { jobdate = localtime(&jobtime); snprintf(temp, sizeof(temp), "%s-%d", dest, jobid); |