return ENOENT instead of 0 for no subjobs
authorAleš Křenek <ljocha@ics.muni.cz>
Tue, 20 Feb 2007 14:43:39 +0000 (14:43 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Tue, 20 Feb 2007 14:43:39 +0000 (14:43 +0000)
org.glite.lb.server/src/lb_plugin.c

index dc6cbae..e3dd5ca 100644 (file)
@@ -546,7 +546,7 @@ static int lb_query(void *fpctx,void *handle, const char *attr,glite_jp_attrval_
                } else {
                        char *et;
                        *attrval = NULL;
-                       err.code = 0;
+                       err.code = ENOENT;
                        trio_asprintf(&et,"Value unknown for attribute '%s', there are no subjobs.",attr);
                        err.desc = strdup(et);
                        free(et);