aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/tapefs/fs.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/cmd/tapefs/fs.c b/src/cmd/tapefs/fs.c
index f67fa6da..dc3148ae 100644
--- a/src/cmd/tapefs/fs.c
+++ b/src/cmd/tapefs/fs.c
@@ -75,18 +75,22 @@ void
main(int argc, char *argv[])
{
Ram *r;
- char *defmnt;
+ char *defmnt, *defsrv;
int p[2];
char buf[TICKREQLEN];
fmtinstall('F', fcallfmt);
initfcalls();
- defmnt = "tapefs";
+ defmnt = nil;
+ defsrv = nil;
ARGBEGIN{
case 'm':
defmnt = ARGF();
break;
+ case 's':
+ defsrv = ARGF();
+ break;
case 'p': /* password file */
uidmap = getpass(ARGF());
break;
@@ -142,8 +146,8 @@ main(int argc, char *argv[])
break;
default:
close(p[0]); /* don't deadlock if child fails */
- if(post9pservice(p[1], defmnt, nil) < 0) {
- sprint(buf, "post on `%s' failed", defmnt);
+ if(post9pservice(p[1], defsrv, defmnt) < 0){
+ sprint(buf, "post9pservice: %r");
error(buf);
}
}