summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-03 03:00:49 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-03 03:00:49 +0000
commitbd1abc6927d9f99161c3b6fa2a715d935fa24bf1 (patch)
tree187b9db0e43153ef538564f2019fa983f1a21c48 /source3
parent3e23d79cfe2ff42a21b97ba367f76f50bd6af45c (diff)
downloadsamba-bd1abc6927d9f99161c3b6fa2a715d935fa24bf1.tar.gz
samba-bd1abc6927d9f99161c3b6fa2a715d935fa24bf1.tar.bz2
samba-bd1abc6927d9f99161c3b6fa2a715d935fa24bf1.zip
hopefully handle "ready and waiting" messages in print queue output a
little better (This used to be commit 465edceecf86cafd225e5662b01242f87f0bd603)
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/printing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 51fd3a992e..040bb8c497 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -887,18 +887,21 @@ static BOOL parse_lpq_entry(int snum,char *line,
if (strstr(line,stat0_strings[i])) {
StrnCpy(status->message,line,sizeof(status->message)-1);
status->status=LPSTAT_OK;
+ return ret;
}
case LPSTAT_STOPPED:
for (i=0; stat1_strings[i]; i++)
if (strstr(line,stat1_strings[i])) {
StrnCpy(status->message,line,sizeof(status->message)-1);
status->status=LPSTAT_STOPPED;
+ return ret;
}
case LPSTAT_ERROR:
for (i=0; stat2_strings[i]; i++)
if (strstr(line,stat2_strings[i])) {
StrnCpy(status->message,line,sizeof(status->message)-1);
status->status=LPSTAT_ERROR;
+ return ret;
}
break;
}