~pixelherodev/ANTS

a345b9e46a39852aa61fa5efd1e0c981031945dc — Noam Preil 1 year, 6 months ago 70ec291
factotum: add -x to not mount /net/cs
M sys/src/cmd/auth/factotum/dat.h => sys/src/cmd/auth/factotum/dat.h +1 -0
@@ 150,6 150,7 @@ int needkeyqueue(Req*, Fsstate*);
extern	int		askforkeys;
extern	char		*authaddr[8];	/* bootstrap auth servers */
extern	int		*confirminuse;
extern	int		nomntcs;
extern	int		debug;
extern	int		gflag;
extern	int		kflag;

M sys/src/cmd/auth/factotum/fs.c => sys/src/cmd/auth/factotum/fs.c +3 -0
@@ 12,6 12,7 @@ Keyring	*ring;
char		*service;
int		sflag;
int		uflag;
int		nomntcs;

extern Srv		fs;
static void		notifyf(void*, char*);


@@ 104,6 105,8 @@ main(int argc, char **argv)
	case 'u':		/* user: set hostowner */
		uflag = 1;
		break;
	case 'x':
		nomntcs = 1;
	default:
		usage();
	}ARGEND

M sys/src/cmd/auth/factotum/util.c => sys/src/cmd/auth/factotum/util.c +2 -0
@@ 11,6 11,8 @@ bindnetcs(void)

	if(access("/net/tcp", AEXIST) < 0)
		bind("#I", "/net", MBEFORE);
	if(nomntcs)
		return -1;

	if(access("/net/cs", AEXIST) < 0){
		if((srvfd = open("#s/cs", ORDWR)) >= 0){