diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-05-08 23:53:46 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-05-08 23:53:46 +0200 |
commit | 8791baf8b3a34e8bace2f6242153fbdf2812765c (patch) | |
tree | 25f843bb11720b432c6b035e51e816a0cafdd058 /sys/src/cmd/rio/rio.c | |
parent | e614ab1d7f82b17b9a921280792ecbfb3a8d67d3 (diff) |
rio: dont list files we dont serve when reading directory
Diffstat (limited to 'sys/src/cmd/rio/rio.c')
-rw-r--r-- | sys/src/cmd/rio/rio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c index 602fab43b..a3fff059e 100644 --- a/sys/src/cmd/rio/rio.c +++ b/sys/src/cmd/rio/rio.c @@ -184,6 +184,7 @@ threadmain(int argc, char *argv[]) } snarffd = open("/dev/snarf", OREAD|OCEXEC); + gotscreen = access("/dev/screen", AEXIST)==0; if(geninitdraw(nil, derror, nil, "rio", nil, Refnone) < 0){ fprint(2, "rio: can't open display: %r\n"); |