This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Bug in pwd.getpwall()
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, jhermann
Priority: normal Keywords:

Created on 2001-03-10 07:35 by jhermann, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (2)
msg3810 - (view) Author: Jürgen Hermann (jhermann) Date: 2001-03-10 07:35
If you call getpwall() several times in a running 
process, you do not see changes made to the pwd 
database.

Probable reason: 
pwd_getpwall() in python/dist/src/Modules/pwdmodule.c 
does not call endpwent() before returning, thus 
keeping the file handle open.

Remedy:
call endpwent()

Related:
same problem could exist in grpmodule.c
msg3811 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2001-03-11 03:03
Logged In: YES 
user_id=3066

Fixed in Modules/grpmodule.c revision 2.15 and Modules/pwdmodule.c revision 1.25.
History
Date User Action Args
2022-04-10 16:03:51adminsetgithub: 34129
2001-03-10 07:35:38jhermanncreate