tread stdin instead of stdout - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit d5cada1329391f91034feaed9a7fc58bee45b9f8
DIR parent b3d3a0687c7e77b429dfbd1ae0f929b80fd02718
HTML Author: rsc <devnull@localhost>
Date: Mon, 26 Jun 2006 00:03:35 +0000
read stdin instead of stdout
Diffstat:
M src/cmd/auxclog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/auxclog.c b/src/cmd/auxclog.c
t@@ -35,7 +35,7 @@ main(int argc, char **argv)
}
if(strcmp(argv[1], "-") == 0)
- fd = 1;
+ fd = 0;
else
fd = open(argv[1], OREAD);
if(fd < 0){