hopefully handle "ready and waiting" messages in print queue output a
authorAndrew Tridgell <tridge@samba.org>
Wed, 3 Dec 1997 03:00:49 +0000 (03:00 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 3 Dec 1997 03:00:49 +0000 (03:00 +0000)
little better

source/printing/printing.c

index 51fd3a992ebd9c3027d7ec331a771f0fb405313f..040bb8c49700eec7044731ac7e9ccca69d5ad0e9 100644 (file)
@@ -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;
       }