diff options
author | cinap_lenrek <cinap_lenrek@vmi> | 2011-11-29 13:42:15 -0500 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@vmi> | 2011-11-29 13:42:15 -0500 |
commit | 9b6ecc6114ce0d526f55e25efbc147348f30c178 (patch) | |
tree | abe09c9929ff3d19590f4b58cb189599be00da8d | |
parent | 25f4840c7eb70b7af3da3e9c13fcff704fab9d11 (diff) | |
download | plan9front-9b6ecc6114ce0d526f55e25efbc147348f30c178.tar.xz |
page: fix noseek detection for files like /dev/screen
-rw-r--r-- | sys/src/cmd/page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/page.c b/sys/src/cmd/page.c index 7c0eca910..89bf1d3dd 100644 --- a/sys/src/cmd/page.c +++ b/sys/src/cmd/page.c @@ -696,7 +696,7 @@ popenfile(Page *p) p->open = tab[i].open; if(seek(fd, 0, 0) < 0) goto Noseek; - if((i = read(fd, buf+n, n)) < 0) + if((i = readn(fd, buf+n, n)) < 0) goto Err1; if(i != n || memcmp(buf, buf+n, i)){ n += i; |