> 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

Reply via email to