System.Posix.User.getAllUserEntries can be called only once

16 Jul
2007
16 Jul
'07
7:49 a.m.
Hello, are there special constraints why the function System.Posix.User.getAllUserEntries of the unix package can be called only once? Beginning with the second call, it only returns the empty list. Thus, this function cannot be used for a long running process which needs to query the user database from time to time, again and again. Thanks, Sascha

16 Jul
16 Jul
8:46 a.m.
On Mon, Jul 16, 2007 at 01:49:31PM +0200, Sascha Böhme wrote:
are there special constraints why the function
System.Posix.User.getAllUserEntries
of the unix package can be called only once?
It's a bug, fixed in the HEAD. To do it in 6.6.1 you'd have to call C's setpwent and endpwent yourself, before and after calling getAllUserEntries. Thanks Ian
6519
Age (days ago)
6519
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ian Lynagh
-
Sascha Böhme