diff options
author | Russ Cox <rsc@swtch.com> | 2008-04-17 16:04:19 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-04-17 16:04:19 -0400 |
commit | cd5a73785d8f7533f1438a955daf23159d09a352 (patch) | |
tree | c9c9c688ca092d2639a41b30d448d7ff33f66d3f /src/cmd/acme/look.c | |
parent | e63025d09486aea0f644578b5e05a093c130b7d2 (diff) | |
download | plan9port-cd5a73785d8f7533f1438a955daf23159d09a352.tar.gz plan9port-cd5a73785d8f7533f1438a955daf23159d09a352.tar.bz2 plan9port-cd5a73785d8f7533f1438a955daf23159d09a352.zip |
acme: add -m option and avoid looking in the mirror
Diffstat (limited to 'src/cmd/acme/look.c')
-rw-r--r-- | src/cmd/acme/look.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/acme/look.c b/src/cmd/acme/look.c index 66c6c664..2ca2061d 100644 --- a/src/cmd/acme/look.c +++ b/src/cmd/acme/look.c @@ -620,7 +620,7 @@ expandfile(Text *t, uint q0, uint q1, Expand *e) if(w != nil) goto Isfile; /* if it's the name of a file, it's a file */ - if(access(e->bname, 0) < 0){ + if(ismtpt(e->bname) || access(e->bname, 0) < 0){ free(e->bname); e->bname = nil; goto Isntfile; |