diff options
author | Russ Cox <rsc@swtch.com> | 2008-05-10 13:43:01 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-05-10 13:43:01 -0400 |
commit | 24726c810b99d6a872337056072cc304a44c42ed (patch) | |
tree | d5b62255bf37dd33bdffae255385fbb45f300e48 /src/cmd/upas | |
parent | 84e123dcd790b494948ec07ac658edb6a06d6a93 (diff) | |
download | plan9port-24726c810b99d6a872337056072cc304a44c42ed.tar.gz plan9port-24726c810b99d6a872337056072cc304a44c42ed.tar.bz2 plan9port-24726c810b99d6a872337056072cc304a44c42ed.zip |
mailfs: add -m option
Diffstat (limited to 'src/cmd/upas')
-rw-r--r-- | src/cmd/upas/nfs/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cmd/upas/nfs/main.c b/src/cmd/upas/nfs/main.c index 121d9746..68792dc2 100644 --- a/src/cmd/upas/nfs/main.c +++ b/src/cmd/upas/nfs/main.c @@ -22,7 +22,7 @@ Imap *imap; void usage(void) { - fprint(2, "usage: mailfs [-DVtx] [-s srvname] [-r root] server\n"); + fprint(2, "usage: mailfs [-DVtx] [-m mtpt] [-s srvname] [-r root] server\n"); threadexitsall("usage"); } @@ -31,10 +31,12 @@ threadmain(int argc, char **argv) { char *server, *srvname, *root; int mode; + char *mtpt; srvname = "mail"; root = ""; mode = Unencrypted; + mtpt = nil; ARGBEGIN{ default: usage(); @@ -44,6 +46,9 @@ threadmain(int argc, char **argv) case 'V': chattyimap++; break; + case 'm': + mtpt = EARGF(usage()); + break; case 's': srvname = EARGF(usage()); break; @@ -71,6 +76,6 @@ threadmain(int argc, char **argv) if((imap = imapconnect(server, mode, root)) == nil) sysfatal("imapconnect: %r"); - threadpostmountsrv(&fs, srvname, nil, 0); + threadpostmountsrv(&fs, srvname, mtpt, 0); } |