~kris/9p

9hist

75c5f1fe12e815e93a0f555f9e7df230abb09313 — David du Colombier 34 years ago d5373f3
Plan 9 from Bell Labs 1992-05-07
1 files changed, 3 insertions(+), 1 deletions(-)

M boot/userpasswd.c
M boot/userpasswd.c => boot/userpasswd.c +3 -1
@@ 24,7 24,7 @@ userpasswd(int islocal, Method *mp)
		outin("user", username, sizeof(username));
	}
	crfd = fd = -1;
	while(strcmp(username, "none") != 0 && !islocal){
	while(strcmp(username, "none") != 0){
		getpasswd(password, sizeof password);
		passtokey(key, password);
		fd = open("#c/key", OWRITE);


@@ 38,6 38,8 @@ userpasswd(int islocal, Method *mp)
			fatal("can't open crypt file");
		write(crfd, "E", 1);
		fd = -1;
		if(islocal)
			break;
		if(mp->auth)
			fd = (*mp->auth)();
		if(fd < 0){