diff options
-rw-r--r-- | src/cmd/acme/text.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c index 61bc12d9..4c4e1be1 100644 --- a/src/cmd/acme/text.c +++ b/src/cmd/acme/text.c @@ -243,6 +243,9 @@ textload(Text *t, uint q0, char *file, int setqid) dbuf = nil; while((n=dirread(fd, &dbuf)) > 0){ for(i=0; i<n; i++){ + if(dbuf[i].name[0] == '.'){ + continue; /* do not list dot files */ + } dl = emalloc(sizeof(Dirlist)); j = strlen(dbuf[i].name); tmp = emalloc(j+1+1); |