9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: YAMANASHI Takeshi <uncover@beat.cc.titech.ac.jp>
To: 9fans@cse.psu.edu
Subject: [9fans] settime() doesn't use rootspec
Date: Tue,  1 Oct 2002 14:20:52 +0900	[thread overview]
Message-ID: <200210010520.g915KLv98731@mail-o.cc.titech.ac.jp> (raw)

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



                 reply	other threads:[~2002-10-01  5:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210010520.g915KLv98731@mail-o.cc.titech.ac.jp \
    --to=uncover@beat.cc.titech.ac.jp \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).