From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 11 Apr 2010 17:48:46 -0400 To: ebo@sandien.com, 9fans@9fans.net Message-ID: <9dc0dfe5bab030f4649339c47d45ffc3@kw.quanstro.net> In-Reply-To: References: <46914d2c-437d-406e-a928-123f4d09f9f7@u15g2000prd.googlegroups.com> <93c7f0c907631447ddb00c5d9280f5eb@brasstown.quanstro.net> <2a514b8f79dfb3434a836f743f936bb2@brasstown.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] /sys/lib/newuser patch Topicbox-Message-UUID: ff155274-ead5-11e9-9d60-3106f5b1d025 > When we try to cd to $home, it does not exist (as checked by the previous if), > and $cwd is set to / by default... The following patch simply makes $home > before cd'ing to it. > > Is this supposed to be the expected nehaviour? > > EBo -- > > ========================= > --- a/sys/lib/newuser 2008-06-30 08:44:02.000000000 -0500 > +++ b/sys/lib/newuser 2010-04-11 15:36:41.865384817 -0500 > @@ -6,6 +6,7 @@ > echo user directories already made > exit no > } > +mkdir $home > cd $home > x='$' > mkdir bin bin/rc bin/mips bin/386 newuser assumes that your home directory exists, and on a normal plan 9 install, it's likely not possible to create anything in /usr without doing it on the fs console. - erik