| commit | cd5a73785d8f7533f1438a955daf23159d09a352 | [log] [tgz] |
|---|---|---|
| author | Russ Cox <rsc@swtch.com> | Thu Apr 17 16:04:19 2008 -0400 |
| committer | Russ Cox <rsc@swtch.com> | Thu Apr 17 16:04:19 2008 -0400 |
| tree | c9c9c688ca092d2639a41b30d448d7ff33f66d3f | |
| parent | e63025d09486aea0f644578b5e05a093c130b7d2 [diff] [blame] |
acme: add -m option and avoid looking in the mirror
diff --git a/src/cmd/acme/look.c b/src/cmd/acme/look.c index 66c6c66..2ca2061 100644 --- a/src/cmd/acme/look.c +++ b/src/cmd/acme/look.c
@@ -620,7 +620,7 @@ 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;