shithub: riscv

Download patch

ref: 037c6189a59166b4d404ca3b014465dc82ebeeda
parent: bada52183c0c61226e82784c307c564533d4fa26
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;
 		}
 	}