changeset 10781:0fe763e73205

6864234 lpstat -o {jobid} does not output status "on <queue>"
author Gowtham Thommandra <Gowtham.Thommandra@Sun.COM>
date Tue, 13 Oct 2009 11:40:35 +0530
parents 15da5eb036f9
children 76adfaa6f5fb
files usr/src/cmd/lp/lib/papi/job.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/lp/lib/papi/job.c	Mon Oct 12 23:08:28 2009 -0700
+++ b/usr/src/cmd/lp/lib/papi/job.c	Tue Oct 13 11:40:35 2009 +0530
@@ -914,12 +914,12 @@
 	if ((*job = j = calloc(1, sizeof (*j))) == NULL)
 		return (PAPI_TEMPORARY_ERROR);
 
+	snprintf(req_id, sizeof (req_id), "%d-0", job_id);
+	lpsched_read_job_configuration(svc, j, req_id);
+
 	job_status_to_attributes(j, request_id, user, slabel, size, date, state,
 	    dest, form, charset, rank, file);
 
-	snprintf(req_id, sizeof (req_id), "%d-0", job_id);
-	lpsched_read_job_configuration(svc, j, req_id);
-
 	return (PAPI_OK);
 }