On Thu, Dec 26, 2002 at 05:55:57PM -0800, [EMAIL PROTECTED] wrote:
> 
> in the function getNextFreeId in useraccounts there is a function 
> getpwent. 
> please how can i move the pointer of the file to the begin of the file 
> passwd again, because when i call the function again for another user 
> creation the while doenst work in getpwent or getgrent because the 
> pointer is at the end of the files.

That appears to be a bug. There appear to be missing calls to endpwent() 
and endgrent()

A workaround for now is to call endpwent() and endgrent() in the routine
which calls getNextFreeId().

I'll move this over to [EMAIL PROTECTED]

Gordon
--
 Gordon Rowell                         [EMAIL PROTECTED]
 Director, Engineering
 Network Server Solutions Group        http://www.e-smith.com/
 Mitel Networks Corporation            http://www.mitel.com/smallbusiness


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to