: nply/minci

commit 13c890920e37d38dce722e2a4379e9f6a76ef892
parent 79fe37fdd46ed80e0cdb2033794dc3e0282dd1d7
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 21:12:33 +0530

Allow logs on successful reports
1 file changed, 3 insertions(+), 4 deletions(-)
M
main.c
|
7
+++----
diff --git a/main.c b/main.c
@@ -1008,8 +1008,8 @@ post(struct kreq *r)
 	}
 
 	/* 
-	 * Check that if stages fail, subsequent must also fail. 
-	 * Also, the log should only be specified on failure.
+	 * Check that if stages fail, subsequent must also fail.
+	 * Logs may be specified for both successful and failed reports.
 	 */
 
 	if ((kpe->parsed.i == 0 &&

@@ -1031,8 +1031,7 @@ post(struct kreq *r)
 	     (kpi->parsed.i != 0 ||
 	      kpc->parsed.i != 0)) ||
 	    (kpi->parsed.i == 0 &&
-	     (kpc->parsed.i != 0)) ||
-	    (kpc->parsed.i != 0 && kpl->valsz)) {
+	     (kpc->parsed.i != 0))) {
 		kutil_warnx(r, NULL, "invalid stages");
 		http_open(r, KHTTP_403, KMIME__MAX, 0);
 		goto out;