[torquedev] patch: fix UNKJOBID log message from ModifyJob

Sergio Gelato Sergio.Gelato at astro.su.se
Sun Feb 25 16:00:48 MST 2007


A simple bugfix: the code for chk_job_request() assumes --- not always
correctly --- that it's acting on a "move" request. This caused
non-printable characters to appear in my server logs.
-------------- next part --------------
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_chk_job_request.dpatch by Sergio Gelato <Sergio.Gelato at astro.su.se>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: chk_job_request() was assuming that it was passed a move request. 
## DP: Sometimes it was a modify request instead.

@DPATCH@
diff -urNad torque-2.1.6/src/server/svr_chk_owner.c /tmp/dpep.dNcZtT/torque-2.1.6/src/server/svr_chk_owner.c
--- torque-2.1.6/src/server/svr_chk_owner.c	2006-07-31 22:11:53.000000000 +0200
+++ /tmp/dpep.dNcZtT/torque-2.1.6/src/server/svr_chk_owner.c	2007-02-24 16:36:16.408683931 +0100
@@ -348,7 +348,7 @@
     log_event(
       PBSEVENT_DEBUG, 
       PBS_EVENTCLASS_JOB,
-      preq->rq_ind.rq_move.rq_jid, 
+      jobid, 
       msg_unkjobid);
 
     req_reject(PBSE_UNKJOBID,0,preq,NULL,NULL);


More information about the torquedev mailing list