summaryrefslogtreecommitdiffstats
path: root/source/printing
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
commit465edceecf86cafd225e5662b01242f87f0bd603 (patch)
tree61ed5b5afb205e6179a694a73ccf8ff0ef58bef2 /source/printing
parent157fde339695d3185ecf857187e981edd06a8b65 (diff)
downloadsamba-465edceecf86cafd225e5662b01242f87f0bd603.tar.gz
samba-465edceecf86cafd225e5662b01242f87f0bd603.tar.xz
samba-465edceecf86cafd225e5662b01242f87f0bd603.zip
hopefully handle "ready and waiting" messages in print queue output a
little better
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/printing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c
index 51fd3a992eb..040bb8c4970 100644
--- a/source/printing/printing.c
+++ b/source/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;
}