aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/look.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-04-17 16:04:19 -0400
committerRuss Cox <rsc@swtch.com>2008-04-17 16:04:19 -0400
commitcd5a73785d8f7533f1438a955daf23159d09a352 (patch)
treec9c9c688ca092d2639a41b30d448d7ff33f66d3f /src/cmd/acme/look.c
parente63025d09486aea0f644578b5e05a093c130b7d2 (diff)
downloadplan9port-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.c2
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;