From: Aleš Křenek Date: Mon, 22 Jan 2007 15:53:39 +0000 (+0000) Subject: fix for #22442 X-Git-Tag: glite-lb-server_R_1_3_10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=a3f8dcceb22bf09b557d8488a9dce90b113acc91;p=jra1mw.git fix for #22442 --- diff --git a/org.glite.lb.server/project/version.properties b/org.glite.lb.server/project/version.properties index f17a92a..0d66d24 100644 --- a/org.glite.lb.server/project/version.properties +++ b/org.glite.lb.server/project/version.properties @@ -1,4 +1,4 @@ #Fri Sep 02 14:18:35 CEST 2005 -module.version=1.3.9 +module.version=1.3.10 module.build=2 module.age=1 diff --git a/org.glite.lb.server/src/query.c b/org.glite.lb.server/src/query.c index 076c9cd..f25f315 100644 --- a/org.glite.lb.server/src/query.c +++ b/org.glite.lb.server/src/query.c @@ -400,8 +400,10 @@ limit_cycle_cleanup: edg_wll_FreeStmt(&sh); } while ( limit_loop ); - if ( eperm && !*jobs_out ) - edg_wll_SetError(ctx, EPERM, "matching jobs found but authorization failed"); + if ( !*jobs_out ) { + if (eperm) edg_wll_SetError(ctx, EPERM, "matching jobs found but authorization failed"); + else edg_wll_SetError(ctx, ENOENT, "no matching jobs found"); + } if ( i && (ret == 0) ) {