ref: f99007281d0080f9369ae502421304b37f0625a9
parent: 41208add722b0e572c1fae65b4184088a61ee3b1
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;
--
⑨