fix for #22442 glite-lb-server_R_1_3_10
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 22 Jan 2007 15:53:39 +0000 (15:53 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 22 Jan 2007 15:53:39 +0000 (15:53 +0000)
org.glite.lb.server/project/version.properties
org.glite.lb.server/src/query.c

index f17a92a..0d66d24 100644 (file)
@@ -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
index 076c9cd..f25f315 100644 (file)
@@ -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) )
        {