shithub: riscv

Download patch

ref: 1c8b5de992131cc255b18781b5da528220392c6b
parent: be7f3fb5e44b3f282a26fa7c6dd50a08677ae069
author: cinap_lenrek <[email protected]>
date: Mon Sep 11 15:17:12 EDT 2017

winwatch: show windows with empty labels (thanks jpm)

--- a/sys/src/cmd/winwatch.c
+++ b/sys/src/cmd/winwatch.c
@@ -117,7 +117,7 @@
 			n = atoi(pd[i].name);
 			if(n == mywinid)
 				continue;
-			if(readfile(label, sizeof(label), "/dev/wsys/%d/label", n) <= 0)
+			if(readfile(label, sizeof(label), "/dev/wsys/%d/label", n) < 0)
 				continue;
 			if(exclude != nil && regexec(exclude,label,nil,0))
 				continue;