git: 9front

Download patch

ref: 82c185d191bad0f5cd75b4d433c0012b9aaa398b
parent: 66a2bb218e4fdef0004bd9d1947bd38e83e860e3
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Jun 20 22:37:10 EDT 2013

uhtml: fix wrong open error handling (fd 0 != fd 1) (thanks BurnZeZ)

--- a/sys/src/cmd/uhtml.c
+++ b/sys/src/cmd/uhtml.c
@@ -65,7 +65,7 @@
 
 	if(*argv){
 		close(0);
-		if(open(*argv, OREAD) != 1)
+		if(open(*argv, OREAD) != 0)
 			sysfatal("open: %r");
 	}
 	nbuf = 0;
--