From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Paul C Lustgarten MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010608045839.29E6C199EF@mail.cse.psu.edu> Subject: [9fans] bug in /sys/lib/newuser Date: Fri, 8 Jun 2001 00:58:37 -0400 Topicbox-Message-UUID: b0fbc1c4-eac9-11e9-9e20-41e7f4b1d025 I believe there's a small bug in the /sys/lib/newuser script. It begins thusly: #!/bin/rc user=`{cat /dev/user} home=/usr/$user if(test -d $user/tmp){ echo user directories already made exit no } The test to avoid duplicate execution here seems wrong: it should be testing $home/tmp rather than $user/tmp, unless there's some reason for the code to expect to *only* be run from /usr. Paul