aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fontsrv
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-07-08 22:23:58 -0700
committerRuss Cox <rsc@swtch.com>2009-07-08 22:23:58 -0700
commit76f90e51459082e3dd93f80e310635c6d37044e2 (patch)
treeb045d303f6c87bf0e96d3d6cd4c9de7a3c88aca0 /src/cmd/fontsrv
parent222094401f99081209f2bc1973652a38b02745d8 (diff)
downloadplan9port-76f90e51459082e3dd93f80e310635c6d37044e2.tar.gz
plan9port-76f90e51459082e3dd93f80e310635c6d37044e2.tar.bz2
plan9port-76f90e51459082e3dd93f80e310635c6d37044e2.zip
fontsrv: add half-documented -s option
Diffstat (limited to 'src/cmd/fontsrv')
-rw-r--r--src/cmd/fontsrv/main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/cmd/fontsrv/main.c b/src/cmd/fontsrv/main.c
index c8a179df..93eb39e2 100644
--- a/src/cmd/fontsrv/main.c
+++ b/src/cmd/fontsrv/main.c
@@ -483,9 +483,10 @@ fontcmp(const void *va, const void *vb)
void
main(int argc, char **argv)
{
- char *mtpt;
-
- mtpt = unsharp("#9/font/mnt");
+ char *mtpt, *srvname;
+
+ mtpt = nil;
+ srvname = "font";
ARGBEGIN{
case 'D':
@@ -497,6 +498,9 @@ main(int argc, char **argv)
case 'm':
mtpt = EARGF(usage());
break;
+ case 's':
+ srvname = EARGF(usage());
+ break;
case 'p':
pflag++;
break;
@@ -536,7 +540,7 @@ main(int argc, char **argv)
sysfatal("mountpoint %s does not exist", mtpt);
xsrv.foreground = 1;
- threadpostmountsrv(&xsrv, "font", mtpt, 0);
+ threadpostmountsrv(&xsrv, srvname, mtpt, 0);
}
/*