From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 11 Apr 2010 15:01:23 -0600 To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> From: "EBo" Message-ID: In-Reply-To: <3b1f002dd7ec4cb2eca37a3c5c07cb8d@ladd.quanstro.net> References: <46914d2c-437d-406e-a928-123f4d09f9f7@u15g2000prd.googlegroups.com> <93c7f0c907631447ddb00c5d9280f5eb@brasstown.quanstro.net> <2a514b8f79dfb3434a836f743f936bb2@brasstown.quanstro.net> , Subject: [9fans] /sys/lib/newuser patch Topicbox-Message-UUID: ff10fb48-ead5-11e9-9d60-3106f5b1d025 I'm playing around with 9vx and have split up (re)building 9vx from the the 9vx root file system provided in the tarball 9vx-0.12.tar.gz When I first start 9vx from a clean build and run /sys/lib/newuser it builds the user directory in /$user instead of /usr/$user. The problem appears to arize from the following: ======================== user=`{cat /dev/user} home=/usr/$user if(test -f $home/lib/profile){ echo user directories already made exit no } cd $home ======================== 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