Added fix from Dan Thibadeau @ HP for parsing problem.
[abartlet/samba.git/.git] / source3 / 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 ": ..." */