9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] settime() doesn't use rootspec
@ 2002-10-01  5:20 YAMANASHI Takeshi
  0 siblings, 0 replies; only message in thread
From: YAMANASHI Takeshi @ 2002-10-01  5:20 UTC (permalink / raw)
  To: 9fans

A terminal boots mounting a file server `filsys other'
as its root, but settime() fails because it always mount
`filsys main' when tries to set the time.

The fix is trivial:

term% diff (/ /n/dump/2002/1001/)^sys/src/9/boot/boot.h
29c29
< 	char *rp, *rsp;
---
> 	char *rp;
118d117
< 	rsp = rp;
143c142
< 	settime(islocal, afd, rsp);
---
> 	settime(islocal, afd);


term% diff (/ /n/dump/2002/1001/)^sys/src/9/boot/settime.c
44c44
< extern void	settime(int, int, char*);
---
> extern void	settime(int, int);


term% diff (/ /n/dump/2002/1001/)^sys/src/9/boot/settime.c
12c12
< settime(int islocal, int afd, char *rp)
---
> settime(int islocal, int afd)
44c44
< 		if(mount(f, afd, "/tmp", MREPL, rp) < 0){
---
> 		if(mount(f, afd, "/tmp", MREPL, "") < 0){



--
YAMANASHI Takeshi



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-01  5:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-01  5:20 [9fans] settime() doesn't use rootspec YAMANASHI Takeshi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).