Added fix from Dan Thibadeau @ HP for parsing problem.
authorJeremy Allison <jra@samba.org>
Thu, 9 Aug 2001 19:36:12 +0000 (19:36 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 9 Aug 2001 19:36:12 +0000 (19:36 +0000)
Jeremy.

source/printing/print_svid.c

index 22ddbe70b95437a409e51d66f1d6e84b7643e8bc..f3573961d9f59aa62df1369f6b45bfc03c87e6ef 100644 (file)
@@ -71,6 +71,19 @@ static void populate_printers(void)
                        tmp=strchr_m(tmp, ' ');
                        tmp++;
                }
+
+               /* Eat whitespace. */
+
+               while(*tmp == ' ')
+                       ++tmp;
+
+               /*
+                * On HPUX there is an extra line that can be ignored.
+                * d.thibadeau 2001/08/09
+                */
+               if(!strncmp("remote to",name,9))
+                       continue;
+
                name = tmp;
 
                /* truncate the ": ..." */