Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-08-02
19:16 • Closed ticket [1942222fff]: useless call to endgrent()/endpwent() plus 7 oth... artifact: 0b3d38ca7c user: dkf
19:15 • Ticket [1942222fff]: 4 changes artifact: 8c31a9a4f0 user: dkf
19:08 • Ticket [1942222fff]: 5 changes artifact: b5e725f188 user: dkf
18:44 • Ticket [1942222fff]: 4 changes artifact: 772450166f user: dkf
2008-04-15
15:03 • Ticket [1942222fff]: 3 changes artifact: 72a520d912 user: dkf
2008-04-14
23:28 • Ticket [1942222fff]: 4 changes artifact: 81a4816e6a user: karllim
23:28 • Add attachment tcl_endgrpwent_20080414.diff to ticket [1942222fffffffff... artifact: 02f111d839 user: karllim
23:28 • Ticket [1942222fff] useless call to endgrent()/endpwent() status still Open ... artifact: eb3fa27b3d user: karllim
23:22 • Ticket [1942222fff]: 4 changes artifact: 82db03d5e7 user: karllim
16:22 • New ticket [1942222fff]. artifact: 66699ab537 user: karllim

useless call to endgrent()/endpwent()

Closed / Fixed1942222fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 17 years ago
Descriptionplain2008-04-14 16:22:30
in unix/tclUnixFCmd.c, GetGroupAttribute() and GetOwnerAttribute() make calls to non-wrapped POSIX calls endpwent() and endgrent().
These two calls are marked to be avoided by the Open Group http://www.opengroup.org/onlinepubs/009695399/functions/getgrent.html
Moreover, the actual calls are useless since TclpGetPwUid() and TclpGetGrUid() do use the newer grgetpw() and grgetgid().

Solution : remove the calls.
karllimplain2008-04-14 23:22:31
File Added - 274488: tcl_endgrpwent_20080414.diff
karllimplain2008-04-14 23:28:29
File Deleted - 274488:
karllimplain2008-04-14 23:28:49
File Added - 274491: tcl_endgrpwent_20080414.diff

Logged In: YES 
user_id=143750
Originator: YES

File Added: tcl_endgrpwent_20080414.diff
dkf Ticket [1942222fff]: 3 changes [History diff]2008-04-15 15:03:40
dkfplain2009-08-02 18:44:14
IP - Comment Removed: 77.97.136.76
dkfplain2009-08-02 19:08:29
Looks like those are hangovers from when we did use getpwent() and getgrent(), and serve no purpose now.
Fixed on HEAD.
dkfplain2009-08-02 19:15:24
Backported to 8.5 branch
dkfplain2009-08-02 19:16:19
allow_comments - 1
Log in (anonymous is fine) to add a comment.

Attachments: