6869028 Print jobs are not arranged as lp -q specified.
authorsonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
Thu, 24 Sep 2009 12:02:40 +0530
changeset 10635 bff95ace2bd8
parent 10634 6f69eed61369
child 10636 4068d6e64f8c
6869028 Print jobs are not arranged as lp -q specified.
usr/src/cmd/print/bsd-sysv-commands/in.lpd.c
--- a/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c	Thu Sep 24 11:23:12 2009 +0530
+++ b/usr/src/cmd/print/bsd-sysv-commands/in.lpd.c	Thu Sep 24 12:02:40 2009 +0530
@@ -317,7 +317,7 @@
 				}
 				break;
 			case 'q': {	/* Solaris priority */
-				int i = atoi(optarg);
+				int i = atoi(++entry);
 
 				i = 100 - (i * 2.5);
 				if ((i < 1) || (i > 100))