git: 9front

Download patch

ref: b4ee64e2e3a240b48d095d64bb2ef55f328ef685
parent: da9d47d908ba111c00f02fe88add540828c9a5f3
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Mar 5 15:46:01 EST 2020

devproc: fix syscalltrace read for ratrace

--- a/sys/src/9/port/devproc.c
+++ b/sys/src/9/port/devproc.c
@@ -1119,9 +1119,10 @@
 		goto statbufread;
 
 	case Qsyscall:
-		n = 0;
 		if(p->syscalltrace != nil)
 			n = readstr(offset, va, n, p->syscalltrace);
+		else
+			n = 0;
 		break;
 
 	case Qnote:
--