allow arbitrary factotum flags like -D by using debugfactotum as a specification rather than a flag. Notes: Mon Feb 8 13:09:37 EST 2010 geoff done instead by adding a new variable, factotumopts, to avoid overloading debugfactotum and perhaps mucking up existing configurations. Reference: /n/sources/patch/sorry/debugfactotum Date: Sun Jan 17 00:34:22 CET 2010 Signed-off-by: quanstro@quanstro.net Reviewed-by: geoff --- /sys/src/9/boot/bootauth.c Sun Jan 17 00:33:23 2010 +++ /sys/src/9/boot/bootauth.c Sun Jan 17 00:33:22 2010 @@ -10,7 +10,7 @@ void authentication(int cpuflag) { - char *argv[16], **av; + char *argv[16], **av, *s; int ac; if(access("/boot/factotum", AEXEC) < 0){ @@ -22,10 +22,8 @@ ac = 0; av = argv; av[ac++] = "factotum"; - if(getenv("debugfactotum")) - av[ac++] = "-p"; -// av[ac++] = "-d"; /* debug traces */ -// av[ac++] = "-D"; /* 9p messages */ + if(s = getenv("debugfactotum")) + av[ac++] = s; if(cpuflag) av[ac++] = "-S"; else --- /sys/man/8/plan9.ini Sun Jan 17 00:33:31 2010 +++ /sys/man/8/plan9.ini Sun Jan 17 00:33:29 2010 @@ -623,8 +623,9 @@ Causes .IR boot (8) to start factotum with the -.B -p -flag, so that it can be debugged. +given flags, typically +.BR -p , +so that it can be debugged. .SS \fLventi=value\fP When booting from a local fossil server backed by a local or remote venti server,