aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/text.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/text.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/text.c')
-rw-r--r--src/cmd/acme/text.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
index ddb3527a..f972b6ab 100644
--- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c
@@ -200,6 +200,10 @@ textload(Text *t, uint q0, char *file, int setqid)
warning(nil, "empty directory name");
return 0;
}
+ if(ismtpt(file)){
+ warning(nil, "will not open self mount point %s\n", file);
+ return 0;
+ }
fd = open(file, OREAD);
if(fd < 0){
warning(nil, "can't open %s: %r\n", file);