From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <200210010520.g915KLv98731@mail-o.cc.titech.ac.jp> To: 9fans@cse.psu.edu From: YAMANASHI Takeshi MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] settime() doesn't use rootspec Date: Tue, 1 Oct 2002 14:20:52 +0900 Topicbox-Message-UUID: fa015630-eaca-11e9-9e20-41e7f4b1d025 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