git: 9front

Download patch

ref: f594765a19be78683ff292db43a9c44ea8e80a65
parent: db7ebf2db46d1055e17b909d7be06629fb39483b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Nov 1 07:28:38 EDT 2022

disk/partfs: fix bogus "%r" error response

--- a/sys/src/cmd/disk/partfs.c
+++ b/sys/src/cmd/disk/partfs.c
@@ -310,13 +310,13 @@
 	if (r->ifcall.type == Twrite) {
 		tot = write(fd, dat, count);
 		if (tot != count) {
-			respond(r, "%r");
+			responderror(r);
 			return -1;
 		}
 	} else {
 		tot = read(fd, dat, count);
 		if (tot < 0) {
-			respond(r, "%r");
+			responderror(r);
 			return -1;
 		}
 	}
--