don't be dumb.
This commit is contained in:
parent
9e0b427274
commit
f583e2b1d8
1 changed files with 2 additions and 7 deletions
|
|
@ -2,8 +2,6 @@
|
||||||
#include <libc.h>
|
#include <libc.h>
|
||||||
#include <fcall.h>
|
#include <fcall.h>
|
||||||
|
|
||||||
int post9pservice(int, char*);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Rather than reading /adm/users, which is a lot of work for
|
* Rather than reading /adm/users, which is a lot of work for
|
||||||
* a toy program, we assume all groups have the form
|
* a toy program, we assume all groups have the form
|
||||||
|
|
@ -147,7 +145,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
initfcalls();
|
initfcalls();
|
||||||
service = "ramfs";
|
service = "ramfs";
|
||||||
defmnt = "/tmp";
|
defmnt = nil;
|
||||||
ARGBEGIN{
|
ARGBEGIN{
|
||||||
case 'D':
|
case 'D':
|
||||||
debug = 1;
|
debug = 1;
|
||||||
|
|
@ -159,7 +157,7 @@ main(int argc, char *argv[])
|
||||||
mfd[1] = 1;
|
mfd[1] = 1;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
defmnt = 0;
|
defmnt = nil;
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
defmnt = ARGF();
|
defmnt = ARGF();
|
||||||
|
|
@ -175,9 +173,6 @@ main(int argc, char *argv[])
|
||||||
usage();
|
usage();
|
||||||
}ARGEND
|
}ARGEND
|
||||||
|
|
||||||
if(defmnt)
|
|
||||||
sysfatal("cannot mount -- not on plan 9");
|
|
||||||
|
|
||||||
if(pipe(p) < 0)
|
if(pipe(p) < 0)
|
||||||
error("pipe failed");
|
error("pipe failed");
|
||||||
if(!stdio){
|
if(!stdio){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue