Plan 9 from Bell Labs’s /usr/web/sources/extra/9hist/boot/glendakey.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


## diffname boot/glendakey.c 2001/0119
## diff -e /dev/null /n/emeliedump/2001/0119/sys/src/9/boot/glendakey.c
0a
#include <u.h>
#include <libc.h>
#include <auth.h>
#include <../boot/boot.h>

/*
 *  pretend to get info out of nvram.
 */
void
glendakey(int, Method*)
{
	char key[DESKEYLEN];

	passtokey(key, "boyd");

	/* set host's key */
	if(writefile("#c/key", key, DESKEYLEN) < 0)
		warning("#c/key");

	/* set host's owner (and uid of current process) */
	if(writefile("#c/hostowner", "glenda", 6) < 0)
		warning("#c/hostowner");

	if(writefile("#c/hostdomain", "plan9", 5) < 0)
		warning("#c/hostdomain");
}
.
## diffname boot/glendakey.c 2001/0527 # deleted
## diff -e /n/emeliedump/2001/0119/sys/src/9/boot/glendakey.c /n/emeliedump/2001/0527/sys/src/9/boot/glendakey.c
1,26d

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].