9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] bug in /sys/lib/newuser
@ 2001-06-08  4:58 Paul C Lustgarten
  0 siblings, 0 replies; only message in thread
From: Paul C Lustgarten @ 2001-06-08  4:58 UTC (permalink / raw)
  To: 9fans

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-08  4:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-08  4:58 [9fans] bug in /sys/lib/newuser Paul C Lustgarten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).