Re: File_Passwd

From: Date: Wed, 17 Apr 2002 12:16:34 +0000
Subject: Re: File_Passwd
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5602@lists.php.net to get a copy of this message
On Wed, 17 Apr 2002, Tomas V.V.Cox wrote: > > I see two options in here. The behaviour of the class > > could be changed to allow to make modifications without > > locking the lockfile (with users own risk of course), > > or to add another error message for the cases when > > not locking the lockfile. > > > > +1 for avoid changing the file without locks I am currently adding support for addUser() and removeUser() methods to Auth_Container_File. This also calls for some modifications to File_Passwd to which I have added lock(), unlock() and isLocked() methods. I added these methods to File_Passwd because IMO the lockfile should be used only when modifying the passwd file, not everytime Auth object is created. These modifications are quite simple and wont break anything so I would like to commit them after testing them properly, if no one is against it. -- Mika Tuupola http://www.appelsiini.net/~tuupola/

« previous php.pear.dev (#5602) next »